pub struct SerderKERI {
pub base: BaseSerder,
}Expand description
KERI-specific implementation of the Serder
Fields§
§base: BaseSerderImplementations§
Source§impl SerderKERI
impl SerderKERI
pub fn new( raw: Option<&[u8]>, sad: Option<&Sadder>, makify: Option<bool>, smellage: Option<Smellage>, proto: Option<String>, vrsn: Option<Versionage>, kind: Option<Kinds>, ilk: Option<Ilk>, saids: Option<HashMap<&str, String>>, ) -> Result<Self, KERIError>
Sourcepub fn from_sad(sad: &Sadder) -> Result<Self, KERIError>
pub fn from_sad(sad: &Sadder) -> Result<Self, KERIError>
Creates a new SerderKERI by constructing its BaseSerder from a sad.
pub fn from_sad_and_saids( sad: &Sadder, saids: Option<HashMap<&str, String>>, ) -> Result<Self, KERIError>
Sourcepub fn verfers(&self) -> Option<Vec<Verfer>>
pub fn verfers(&self) -> Option<Vec<Verfer>>
List of Verfer instances as converted from .sad[‘k’]
Sourcepub fn ndigers(&self) -> Option<Vec<Diger>>
pub fn ndigers(&self) -> Option<Vec<Diger>>
List of Diger instances as converted from .sad[‘n’]
Sourcepub fn berfers(&self) -> Option<Vec<Verfer>>
pub fn berfers(&self) -> Option<Vec<Verfer>>
List of Verfer instances as converted from .sad[‘b’]
pub fn compare_said(&self, said: &str) -> bool
Trait Implementations§
Source§impl Clone for SerderKERI
impl Clone for SerderKERI
Source§fn clone(&self) -> SerderKERI
fn clone(&self) -> SerderKERI
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SerderKERI
impl Debug for SerderKERI
Source§impl Rawifiable for SerderKERI
impl Rawifiable for SerderKERI
Source§impl Serder for SerderKERI
Implement the Serder trait for SerderKERI
impl Serder for SerderKERI
Implement the Serder trait for SerderKERI
Source§fn pretty(&self, size: Option<usize>) -> String
fn pretty(&self, size: Option<usize>) -> String
Returns a pretty-printed JSON representation of the serialized data Read more
Source§fn sad(&self) -> Sadder
fn sad(&self) -> Sadder
Returns a copy of the serializable attribute dictionary (saidified data)
fn as_any(&self) -> &dyn Any
fn clone_box(&self) -> Box<dyn Serder>
Source§impl Verifiable for SerderKERI
impl Verifiable for SerderKERI
Auto Trait Implementations§
impl Freeze for SerderKERI
impl RefUnwindSafe for SerderKERI
impl Send for SerderKERI
impl Sync for SerderKERI
impl Unpin for SerderKERI
impl UnsafeUnpin for SerderKERI
impl UnwindSafe for SerderKERI
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