Struct taple_core::signature::Signature
source · pub struct Signature {
pub signer: KeyIdentifier,
pub timestamp: TimeStamp,
pub value: SignatureIdentifier,
}
Expand description
Defines the data used to generate the signature, as well as the signer’s identifier. 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§
§signer: KeyIdentifier
Signer identifier
timestamp: TimeStamp
Timestamp of the signature
value: SignatureIdentifier
The signature itself
Implementations§
Trait Implementations§
source§impl BorshDeserialize for Signaturewhere
KeyIdentifier: BorshDeserialize,
TimeStamp: BorshDeserialize,
SignatureIdentifier: BorshDeserialize,
impl BorshDeserialize for Signaturewhere KeyIdentifier: BorshDeserialize, TimeStamp: BorshDeserialize, SignatureIdentifier: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§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.
§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 Signaturewhere
KeyIdentifier: BorshSerialize,
TimeStamp: BorshSerialize,
SignatureIdentifier: BorshSerialize,
impl BorshSerialize for Signaturewhere KeyIdentifier: BorshSerialize, TimeStamp: BorshSerialize, SignatureIdentifier: BorshSerialize,
source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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 PartialEq<Signature> for Signature
impl PartialEq<Signature> for Signature
source§impl PartialOrd<Signature> for Signature
impl PartialOrd<Signature> for Signature
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 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§
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> 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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.