Struct taple_core::SignatureIdentifier
source · pub struct SignatureIdentifier {
pub derivator: SignatureDerivator,
pub signature: Vec<u8>,
}
Expand description
Signature based identifier
Fields§
§derivator: SignatureDerivator
§signature: Vec<u8>
Implementations§
source§impl SignatureIdentifier
impl SignatureIdentifier
pub fn new(derivator: SignatureDerivator, signature: &[u8]) -> Self
Trait Implementations§
source§impl BorshDeserialize for SignatureIdentifierwhere
SignatureDerivator: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for SignatureIdentifierwhere SignatureDerivator: BorshDeserialize, Vec<u8>: 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 SignatureIdentifierwhere
SignatureDerivator: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for SignatureIdentifierwhere SignatureDerivator: BorshSerialize, Vec<u8>: BorshSerialize,
source§impl Clone for SignatureIdentifier
impl Clone for SignatureIdentifier
source§fn clone(&self) -> SignatureIdentifier
fn clone(&self) -> SignatureIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SignatureIdentifier
impl Debug for SignatureIdentifier
source§impl Derivable for SignatureIdentifier
impl Derivable for SignatureIdentifier
source§impl<'de> Deserialize<'de> for SignatureIdentifier
impl<'de> Deserialize<'de> for SignatureIdentifier
source§fn deserialize<D>(deserializer: D) -> Result<SignatureIdentifier, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<SignatureIdentifier, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for SignatureIdentifier
impl FromStr for SignatureIdentifier
source§impl Hash for SignatureIdentifier
impl Hash for SignatureIdentifier
source§impl PartialEq<SignatureIdentifier> for SignatureIdentifier
impl PartialEq<SignatureIdentifier> for SignatureIdentifier
source§fn eq(&self, other: &SignatureIdentifier) -> bool
fn eq(&self, other: &SignatureIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SignatureIdentifier> for SignatureIdentifier
impl PartialOrd<SignatureIdentifier> for SignatureIdentifier
source§fn partial_cmp(&self, other: &SignatureIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureIdentifier) -> Option<Ordering>
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 moresource§impl Serialize for SignatureIdentifier
impl Serialize for SignatureIdentifier
impl Eq for SignatureIdentifier
impl StructuralEq for SignatureIdentifier
impl StructuralPartialEq for SignatureIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for SignatureIdentifier
impl Send for SignatureIdentifier
impl Sync for SignatureIdentifier
impl Unpin for SignatureIdentifier
impl UnwindSafe for SignatureIdentifier
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.