Struct core::signature::SignatureContent
[−]pub struct SignatureContent {
pub signer: KeyIdentifier,
pub event_content_hash: DigestIdentifier,
pub timestamp: i64,
}
Expand description
Defines the data used to generate the signature, as well as the signer’s identifier.
Fields
signer: KeyIdentifier
event_content_hash: DigestIdentifier
timestamp: i64
Trait Implementations
impl BorshDeserialize for SignatureContentwhere
KeyIdentifier: BorshDeserialize,
DigestIdentifier: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for SignatureContentwhere
KeyIdentifier: BorshDeserialize,
DigestIdentifier: BorshDeserialize,
i64: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<SignatureContent, Error>
fn deserialize(buf: &mut &[u8]) -> Result<SignatureContent, 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 SignatureContentwhere
KeyIdentifier: BorshSerialize,
DigestIdentifier: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for SignatureContentwhere
KeyIdentifier: BorshSerialize,
DigestIdentifier: BorshSerialize,
i64: BorshSerialize,
impl Clone for SignatureContent
impl Clone for SignatureContent
fn clone(&self) -> SignatureContent
fn clone(&self) -> SignatureContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for SignatureContent
impl Debug for SignatureContent
impl<'de> Deserialize<'de> for SignatureContent
impl<'de> Deserialize<'de> for SignatureContent
fn deserialize<__D>(
__deserializer: __D
) -> Result<SignatureContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SignatureContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for SignatureContent
impl Hash for SignatureContent
impl PartialEq<SignatureContent> for SignatureContent
impl PartialEq<SignatureContent> for SignatureContent
fn eq(&self, other: &SignatureContent) -> bool
fn eq(&self, other: &SignatureContent) -> bool
impl Serialize for SignatureContent
impl Serialize for SignatureContent
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 SignatureContent
impl ToSchema for SignatureContent
impl Eq for SignatureContent
impl StructuralEq for SignatureContent
Auto Trait Implementations
impl RefUnwindSafe for SignatureContent
impl Send for SignatureContent
impl Sync for SignatureContent
impl Unpin for SignatureContent
impl UnwindSafe for SignatureContent
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.