Struct mln_did::state::VerificationMethod
source · pub struct VerificationMethod {
pub fragment: String,
pub flags: u16,
pub method_type: u8,
pub key_data: Vec<u8>,
}Expand description
The native authority key for a DidAccount
Fields§
§fragment: Stringfragment
flags: u16The permissions this key has
method_type: u8The actual verification method
key_data: Vec<u8>Dynamically sized key matching the given VerificationType
Implementations§
source§impl VerificationMethod
impl VerificationMethod
pub fn size(&self) -> usize
pub fn default( flags: VerificationMethodFlags, key_data: Vec<u8> ) -> VerificationMethod
pub fn default_size() -> usize
Trait Implementations§
source§impl BorshDeserialize for VerificationMethod
impl BorshDeserialize for VerificationMethod
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§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.
source§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 VerificationMethod
impl BorshSerialize for VerificationMethod
source§impl Clone for VerificationMethod
impl Clone for VerificationMethod
source§fn clone(&self) -> VerificationMethod
fn clone(&self) -> VerificationMethod
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 moreAuto Trait Implementations§
impl RefUnwindSafe for VerificationMethod
impl Send for VerificationMethod
impl Sync for VerificationMethod
impl Unpin for VerificationMethod
impl UnwindSafe for VerificationMethod
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