Struct mmr_rpc::LeavesProof
source · pub struct LeavesProof<BlockHash> {
pub block_hash: BlockHash,
pub leaves: Bytes,
pub proof: Bytes,
}Expand description
Retrieved MMR leaves and their proof.
Fields§
§block_hash: BlockHashBlock hash the proof was generated for.
leaves: BytesSCALE-encoded vector of LeafData.
proof: BytesSCALE-encoded proof data. See sp_mmr_primitives::Proof.
Implementations§
source§impl<BlockHash> LeavesProof<BlockHash>
impl<BlockHash> LeavesProof<BlockHash>
Trait Implementations§
source§impl<BlockHash: Clone> Clone for LeavesProof<BlockHash>
impl<BlockHash: Clone> Clone for LeavesProof<BlockHash>
source§fn clone(&self) -> LeavesProof<BlockHash>
fn clone(&self) -> LeavesProof<BlockHash>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<BlockHash: Debug> Debug for LeavesProof<BlockHash>
impl<BlockHash: Debug> Debug for LeavesProof<BlockHash>
source§impl<'de, BlockHash> Deserialize<'de> for LeavesProof<BlockHash>where
BlockHash: Deserialize<'de>,
impl<'de, BlockHash> Deserialize<'de> for LeavesProof<BlockHash>where BlockHash: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<BlockHash: PartialEq> PartialEq for LeavesProof<BlockHash>
impl<BlockHash: PartialEq> PartialEq for LeavesProof<BlockHash>
source§fn eq(&self, other: &LeavesProof<BlockHash>) -> bool
fn eq(&self, other: &LeavesProof<BlockHash>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<BlockHash> Serialize for LeavesProof<BlockHash>where
BlockHash: Serialize,
impl<BlockHash> Serialize for LeavesProof<BlockHash>where BlockHash: Serialize,
impl<BlockHash: Eq> Eq for LeavesProof<BlockHash>
impl<BlockHash> StructuralEq for LeavesProof<BlockHash>
impl<BlockHash> StructuralPartialEq for LeavesProof<BlockHash>
Auto Trait Implementations§
impl<BlockHash> RefUnwindSafe for LeavesProof<BlockHash>where BlockHash: RefUnwindSafe,
impl<BlockHash> Send for LeavesProof<BlockHash>where BlockHash: Send,
impl<BlockHash> Sync for LeavesProof<BlockHash>where BlockHash: Sync,
impl<BlockHash> Unpin for LeavesProof<BlockHash>where BlockHash: Unpin,
impl<BlockHash> UnwindSafe for LeavesProof<BlockHash>where BlockHash: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.