pub struct MetadataWrappedItem<T, M> {
pub inner: T,
pub pod_metadata: M,
}Fields§
§inner: T§pod_metadata: MImplementations§
Source§impl MetadataWrappedItem<Log, PodLogMetadata>
impl MetadataWrappedItem<Log, PodLogMetadata>
pub fn generate_multi_proof(&self) -> Option<(Vec<Hash>, MerkleMultiProof)>
pub fn verify(&self, committee: &Committee) -> Result<(), CommitteeError>
pub fn confirmation_time(&self) -> Timestamp
pub fn generate_proof(&self) -> Option<MerkleProof>
pub fn get_leaf(&self) -> Hash
pub fn aggregate_signatures(&self) -> Vec<u8> ⓘ
pub fn get_sorted_attestation_timestamps_in_seconds(&self) -> Vec<U256> ⓘ
pub fn get_sorted_attestation_signatures(&self) -> Vec<[u8; 65]>
pub fn verify_proof(&self, receipt_root: Hash, proof: MerkleProof) -> bool
Trait Implementations§
Source§impl<T: Clone, M: Clone> Clone for MetadataWrappedItem<T, M>
impl<T: Clone, M: Clone> Clone for MetadataWrappedItem<T, M>
Source§fn clone(&self) -> MetadataWrappedItem<T, M>
fn clone(&self) -> MetadataWrappedItem<T, M>
Returns a duplicate 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<'de, T, M> Deserialize<'de> for MetadataWrappedItem<T, M>where
T: Deserialize<'de>,
M: Deserialize<'de>,
impl<'de, T, M> Deserialize<'de> for MetadataWrappedItem<T, M>where
T: Deserialize<'de>,
M: 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
Auto Trait Implementations§
impl<T, M> Freeze for MetadataWrappedItem<T, M>
impl<T, M> RefUnwindSafe for MetadataWrappedItem<T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<T, M> Send for MetadataWrappedItem<T, M>
impl<T, M> Sync for MetadataWrappedItem<T, M>
impl<T, M> Unpin for MetadataWrappedItem<T, M>
impl<T, M> UnwindSafe for MetadataWrappedItem<T, M>where
T: UnwindSafe,
M: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more