Struct unc_primitives::sharding::ReceiptProof
source · pub struct ReceiptProof(pub Vec<Receipt>, pub ShardProof);Expand description
For each Merkle proof there is a subset of receipts which may be proven.
Tuple Fields§
§0: Vec<Receipt>§1: ShardProofImplementations§
source§impl ReceiptProof
impl ReceiptProof
pub fn verify_against_receipt_root(&self, receipt_root: CryptoHash) -> bool
Trait Implementations§
source§impl BorshDeserialize for ReceiptProof
impl BorshDeserialize for ReceiptProof
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for ReceiptProof
impl BorshSerialize for ReceiptProof
source§impl Clone for ReceiptProof
impl Clone for ReceiptProof
source§fn clone(&self) -> ReceiptProof
fn clone(&self) -> ReceiptProof
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 Debug for ReceiptProof
impl Debug for ReceiptProof
source§impl<'de> Deserialize<'de> for ReceiptProof
impl<'de> Deserialize<'de> for ReceiptProof
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 Ord for ReceiptProof
impl Ord for ReceiptProof
source§impl PartialEq for ReceiptProof
impl PartialEq for ReceiptProof
source§fn eq(&self, other: &ReceiptProof) -> bool
fn eq(&self, other: &ReceiptProof) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ReceiptProof
impl PartialOrd for ReceiptProof
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ReceiptProof
impl StructuralPartialEq for ReceiptProof
Auto Trait Implementations§
impl Freeze for ReceiptProof
impl RefUnwindSafe for ReceiptProof
impl Send for ReceiptProof
impl Sync for ReceiptProof
impl Unpin for ReceiptProof
impl UnwindSafe for ReceiptProof
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§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 Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.