Struct did_simple::methods::key::DidKey
source · pub struct DidKey { /* private fields */ }Expand description
An implementation of the did:key method. See the module docs for more
info.
Implementations§
source§impl DidKey
impl DidKey
pub const PREFIX: &'static str = PREFIX
sourcepub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_slice(&self) -> &[u8] ⓘ
Gets the buffer representing the did:key url as a byte slice.
sourcepub fn as_utf8_bytes(&self) -> &Utf8Bytes
pub fn as_utf8_bytes(&self) -> &Utf8Bytes
Gets the buffer representing the did:key url as a reference counted slice that is guaranteed to be utf8.
pub fn key_algo(&self) -> KeyAlgo
Trait Implementations§
source§impl PartialEq for DidKey
impl PartialEq for DidKey
impl Eq for DidKey
impl StructuralPartialEq for DidKey
Auto Trait Implementations§
impl !Freeze for DidKey
impl RefUnwindSafe for DidKey
impl Send for DidKey
impl Sync for DidKey
impl Unpin for DidKey
impl UnwindSafe for DidKey
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