Skip to main content

SerderACDC

Struct SerderACDC 

Source
pub struct SerderACDC {
    pub base: BaseSerder,
}
Expand description

SerderACDC struct that extends BaseSerder

Fields§

§base: BaseSerder

Base Serder fields and behavior

Implementations§

Source§

impl SerderACDC

Source

pub fn from_sad(sad: &Sadder) -> Result<Self, KERIError>

Creates a new SerderACDC by constructing its BaseSerder from a sad.

Source

pub fn uuid(&self) -> Option<String>

uuid property getter Optional fields return None when not present

Returns: Option: qb64 of .sad[“u”] salty nonce UUID (salty nonce) from .sad[“u”]

Source

pub fn uuidb(&self) -> Option<Vec<u8>>

uuidb property getter (uuid bytes) Optional fields return None when not present

Returns: Option<Vec>: qb64b of .sad[“u”] salty nonce as bytes

Source

pub fn issuer(&self) -> Option<String>

issuer property getter (issuer AID) Optional fields return None when not present

Returns: Option: qb64 of .sad[“i”] issuer AID

Source

pub fn issuerb(&self) -> Option<Vec<u8>>

issuerb property getter (issuer AID bytes) Optional fields return None when not present

Returns: Option<Vec>: qb64b of .issuer AID as bytes

Source

pub fn regi(&self) -> Option<String>

regi property getter (registry identifier SAID) Optional fields return None when not present

Returns: Option: qb64 of .sad[“ri”] registry SAID

Source

pub fn regib(&self) -> Option<Vec<u8>>

regib property getter (registry identifier SAID bytes) Optional fields return None when not present

Returns: Option<Vec>: qb64b of .issuer AID as bytes

Source

pub fn schema(&self) -> Option<String>

schema block or SAID property getter Optional fields return None when not present

Returns: Option<&Value>: from ._sad[“s”]

Source

pub fn attrib(&self) -> Option<IndexMap<String, SadValue>>

attrib block or SAID property getter (attribute) Optional fields return None when not present

Returns: Option<&String>: from ._sad[“a”]

Source

pub fn issuee(&self) -> Option<String>

issuee property getter (issuee AID) Optional fields return None when not present

Returns: Option: qb64 of .sad[“a”][“i”] issuee AID

Source

pub fn issueeb(&self) -> Option<Vec<u8>>

issueeb property getter (issuee AID bytes) Optional fields return None when not present

Returns: Option<Vec>: qb64b of .issuee AID as bytes

Source

pub fn attagg(&self) -> Option<&SadValue>

attagg block property getter (attribute aggregate) Optional fields return None when not present

Returns: Option<&Value>: from ._sad[“A”]

Source

pub fn edge(&self) -> Option<IndexMap<String, SadValue>>

edge block property getter Optional fields return None when not present

Returns: Option<&Value>: from ._sad[“e”]

Source

pub fn rule(&self) -> Option<IndexMap<String, SadValue>>

rule block property getter Optional fields return None when not present

Returns: Option<&Value>: from ._sad[“r”]

Source§

impl SerderACDC

Source

pub fn verify(&self) -> Result<(), KERIError>

Public verification method that delegates to the trait method

Trait Implementations§

Source§

impl Clone for SerderACDC

Source§

fn clone(&self) -> SerderACDC

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SerderACDC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Rawifiable for SerderACDC

Source§

fn from_raw(raw: &[u8], smell: Option<Smellage>) -> Result<Self, KERIError>

Creates a new SerderACDC by constructing its BaseSerder from raw bytes.

Source§

impl Serder for SerderACDC

Implement the Serder trait for SerderKERI

Source§

fn pretty(&self, size: Option<usize>) -> String

Returns a pretty-printed JSON representation of the serialized data Read more
Source§

fn raw(&self) -> &[u8] ⓘ

Returns the raw bytes representation
Source§

fn sad(&self) -> Sadder

Returns a copy of the serializable attribute dictionary (saidified data)
Source§

fn genus(&self) -> &str

Returns the CESR genus code for this Serder
Source§

fn gvrsn(&self) -> &Versionage

Returns the CESR genus code table version for this Serder
Source§

fn kind(&self) -> &Kinds

Returns the serialization kind (value of Serials/Serialage)
Source§

fn proto(&self) -> &str

Returns the protocol identifier type (e.g., ‘KERI’ or ‘ACDC’)
Source§

fn vrsn(&self) -> &Versionage

Returns the protocol version for this Serder
Source§

fn size(&self) -> usize

Returns the number of bytes in the raw representation
Source§

fn said(&self) -> Option<&str>

Returns the qb64 SAID (Self-Addressing IDentifier)
Source§

fn ilk(&self) -> Option<&str>

Returns the packet type given by sad[‘t’] if any
Source§

fn as_any(&self) -> &dyn Any

Source§

fn clone_box(&self) -> Box<dyn Serder>

Source§

fn protocol(&self) -> &str

Alias for proto() - returns the protocol identifier type
Source§

fn version(&self) -> &Versionage

Alias for vrsn() - returns the protocol version
Source§

fn saidb(&self) -> Option<Vec<u8>>

Returns the qb64b (bytes) representation of the SAID
Source§

impl Verifiable for SerderACDC

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more