pub struct Attested<M, A> {
pub msg: M,
pub attestation: A,
}
Expand description
A wrapper struct for holding a message and it’s attestation.
Fields§
§msg: M
§attestation: A
Implementations§
Trait Implementations§
Source§impl<RM, RA> From<Attested<<RM as HasDomainType>::DomainType, <RA as HasDomainType>::DomainType>> for RawAttested<RM, RA>where
RM: HasDomainType,
RA: HasDomainType,
impl<RM, RA> From<Attested<<RM as HasDomainType>::DomainType, <RA as HasDomainType>::DomainType>> for RawAttested<RM, RA>where
RM: HasDomainType,
RA: HasDomainType,
Source§fn from(value: Attested<RM::DomainType, RA::DomainType>) -> Self
fn from(value: Attested<RM::DomainType, RA::DomainType>) -> Self
Converts to this type from the input type.
Source§impl<RM, RA> TryFrom<RawAttested<RM, RA>> for Attested<RM::DomainType, RA::DomainType>where
RM: HasDomainType,
RA: HasDomainType,
impl<RM, RA> TryFrom<RawAttested<RM, RA>> for Attested<RM::DomainType, RA::DomainType>where
RM: HasDomainType,
RA: HasDomainType,
impl<M, A> StructuralPartialEq for Attested<M, A>
Auto Trait Implementations§
impl<M, A> Freeze for Attested<M, A>
impl<M, A> RefUnwindSafe for Attested<M, A>where
M: RefUnwindSafe,
A: RefUnwindSafe,
impl<M, A> Send for Attested<M, A>
impl<M, A> Sync for Attested<M, A>
impl<M, A> Unpin for Attested<M, A>
impl<M, A> UnwindSafe for Attested<M, A>where
M: UnwindSafe,
A: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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