pub struct Signature {
pub content: SignatureContent,
pub signature: SignatureIdentifier,
}
Expand description
The format, in addition to the signature, includes additional information, namely the signer’s identifier, the signature timestamp and the hash of the signed contents.
Fields
content: SignatureContent
signature: SignatureIdentifier
Trait Implementations
impl BorshDeserialize for Signaturewhere
SignatureContent: BorshDeserialize,
SignatureIdentifier: BorshDeserialize,
impl BorshDeserialize for Signaturewhere
SignatureContent: BorshDeserialize,
SignatureIdentifier: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Signature, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Signature, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
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.
impl BorshSerialize for Signaturewhere
SignatureContent: BorshSerialize,
SignatureIdentifier: BorshSerialize,
impl BorshSerialize for Signaturewhere
SignatureContent: BorshSerialize,
SignatureIdentifier: BorshSerialize,
impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
fn deserialize<__D>(
__deserializer: __D
) -> Result<Signature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Signature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Signature
impl Serialize for Signature
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl ToSchema for Signature
impl ToSchema for Signature
impl Eq for Signature
impl StructuralEq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.