Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0277]: the trait bound `transaction::hash::Hash: Serialize` is not satisfied
- --> zebra-chain/src/transparent.rs:119:12
- |
- 119 | derive(Serialize)
- | ^^^^^^^^^ the trait `Serialize` is not implemented for `transaction::hash::Hash`
- ...
- 122 | /// References the transaction that contains the UTXO being spent.
- | ------------------------------------------------------------------ required by a bound introduced by this call
- |
- = note: for local types consider adding `#[derive(serde::Serialize)]` to your `transaction::hash::Hash` type
- = note: for types from other crates check whether the crate offers a `serde` feature flag
- = help: the following other types implement trait `Serialize`:
- &'a T
- &'a mut T
- ()
- (T,)
- (T0, T1)
- (T0, T1, T2)
- (T0, T1, T2, T3)
- (T0, T1, T2, T3, T4)
- and 265 others
- note: required by a bound in `serde::ser::SerializeStruct::serialize_field`
- --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.217/src/ser/mod.rs:1867:21
- |
- 1865 | fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
- | --------------- required by a bound in this associated function
- 1866 | where
- 1867 | T: ?Sized + Serialize;
- | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
- = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
- Compiling abscissa_core v0.7.0
- For more information about this error, try `rustc --explain E0277`.
- error: could not compile `zebra-chain` (lib) due to 1 previous error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement