pub struct Diger { /* private fields */ }Expand description
Diger is Matter subclass with method to verify digest of serialization
Implementations§
Source§impl Diger
impl Diger
pub fn new( raw: Option<&[u8]>, code: Option<&str>, soft: Option<&str>, rize: Option<usize>, ) -> Result<Self, MatterError>
pub fn from_raw(raw: Option<&[u8]>) -> Result<Self, MatterError>
pub fn from_qb64(qb64: &str) -> Result<Self, MatterError>
pub fn from_ser(ser: &[u8], code: Option<&str>) -> Result<Self, MatterError>
pub fn from_ser_and_code(ser: &[u8], code: &str) -> Result<Self, MatterError>
pub fn digest(ser: &[u8], code: &str) -> Result<Vec<u8>, MatterError>
Trait Implementations§
Source§impl Matter for Diger
impl Matter for Diger
Source§fn is_transferable(&self) -> bool
fn is_transferable(&self) -> bool
Returns whether the derivation code is transferable
Source§fn is_digestive(&self) -> bool
fn is_digestive(&self) -> bool
Returns whether the code represents a digest
Source§fn is_prefixive(&self) -> bool
fn is_prefixive(&self) -> bool
Returns whether the code represents a prefix
Source§fn is_special(&self) -> bool
fn is_special(&self) -> bool
Returns whether the code represents a prefix
fn as_any(&self) -> &dyn Any
Auto Trait Implementations§
impl Freeze for Diger
impl RefUnwindSafe for Diger
impl Send for Diger
impl Sync for Diger
impl Unpin for Diger
impl UnsafeUnpin for Diger
impl UnwindSafe for Diger
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