Struct chain_impl_mockchain::key::Signed
source · pub struct Signed<T, A: VerificationAlgorithm> {
pub data: T,
pub sig: Signature<T, A>,
}
Expand description
A serializable type T with a signature.
Fields§
§data: T
§sig: Signature<T, A>
Trait Implementations§
source§impl<T: Deserialize, A: VerificationAlgorithm> DeserializeFromSlice for Signed<T, A>
impl<T: Deserialize, A: VerificationAlgorithm> DeserializeFromSlice for Signed<T, A>
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl<T: PartialEq, A: VerificationAlgorithm> PartialEq<Signed<T, A>> for Signed<T, A>
impl<T: PartialEq, A: VerificationAlgorithm> PartialEq<Signed<T, A>> for Signed<T, A>
source§impl<T: Serialize, A: VerificationAlgorithm> Serialize for Signed<T, A>
impl<T: Serialize, A: VerificationAlgorithm> Serialize for Signed<T, A>
impl<T: PartialEq, A: VerificationAlgorithm> Eq for Signed<T, A>
Auto Trait Implementations§
impl<T, A> RefUnwindSafe for Signed<T, A>where T: RefUnwindSafe, <A as VerificationAlgorithm>::Signature: RefUnwindSafe,
impl<T, A> Send for Signed<T, A>where T: Send, <A as VerificationAlgorithm>::Signature: Send,
impl<T, A> Sync for Signed<T, A>where T: Sync, <A as VerificationAlgorithm>::Signature: Sync,
impl<T, A> Unpin for Signed<T, A>where T: Unpin, <A as VerificationAlgorithm>::Signature: Unpin,
impl<T, A> UnwindSafe for Signed<T, A>where T: UnwindSafe, <A as VerificationAlgorithm>::Signature: 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