Struct core::identifier::SignatureIdentifier
[−]pub struct SignatureIdentifier {
pub derivator: SignatureDerivator,
pub signature: Vec<u8, Global>,
}
Expand description
Signature based identifier
Fields
derivator: SignatureDerivator
signature: Vec<u8, Global>
Implementations
impl SignatureIdentifier
impl SignatureIdentifier
pub fn new(
derivator: SignatureDerivator,
signature: &[u8]
) -> SignatureIdentifier
Trait Implementations
impl BorshDeserialize for SignatureIdentifierwhere
SignatureDerivator: BorshDeserialize,
Vec<u8, Global>: BorshDeserialize,
impl BorshDeserialize for SignatureIdentifierwhere
SignatureDerivator: BorshDeserialize,
Vec<u8, Global>: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<SignatureIdentifier, Error>
fn deserialize(buf: &mut &[u8]) -> Result<SignatureIdentifier, 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 SignatureIdentifierwhere
SignatureDerivator: BorshSerialize,
Vec<u8, Global>: BorshSerialize,
impl BorshSerialize for SignatureIdentifierwhere
SignatureDerivator: BorshSerialize,
Vec<u8, Global>: BorshSerialize,
impl Clone for SignatureIdentifier
impl Clone for SignatureIdentifier
fn clone(&self) -> SignatureIdentifier
fn clone(&self) -> SignatureIdentifier
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 SignatureIdentifier
impl Debug for SignatureIdentifier
impl Derivable for SignatureIdentifier
impl Derivable for SignatureIdentifier
impl<'de> Deserialize<'de> for SignatureIdentifier
impl<'de> Deserialize<'de> for SignatureIdentifier
fn deserialize<D>(
deserializer: D
) -> Result<SignatureIdentifier, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<SignatureIdentifier, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for SignatureIdentifier
impl FromStr for SignatureIdentifier
fn from_str(
s: &str
) -> Result<SignatureIdentifier, <SignatureIdentifier as FromStr>::Err>
fn from_str(
s: &str
) -> Result<SignatureIdentifier, <SignatureIdentifier as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl Hash for SignatureIdentifier
impl Hash for SignatureIdentifier
impl PartialEq<SignatureIdentifier> for SignatureIdentifier
impl PartialEq<SignatureIdentifier> for SignatureIdentifier
fn eq(&self, other: &SignatureIdentifier) -> bool
fn eq(&self, other: &SignatureIdentifier) -> bool
impl PartialOrd<SignatureIdentifier> for SignatureIdentifier
impl PartialOrd<SignatureIdentifier> for SignatureIdentifier
fn partial_cmp(&self, other: &SignatureIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureIdentifier) -> Option<Ordering>
1.0.0 · sourcefn 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 Serialize for SignatureIdentifier
impl Serialize for SignatureIdentifier
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 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
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.