pub struct StateEERecord {
pub s: String,
pub d: String,
pub br: Option<Vec<String>>,
pub ba: Option<Vec<String>>,
}Expand description
Corresponds to StateEstEvent namedtuple used as sub record in KeyStateRecord for latest establishment event associated with current key state
Fields§
§s: StringSequence number of latest est evt lowercase hex no leading zeros
d: StringSAID qb64 of latest est evt
br: Option<Vec<String>>Backer aids qb64 remove list (cuts) from latest est event
ba: Option<Vec<String>>Backer aids qb64 add list (adds) from latest est event
Implementations§
Source§impl StateEERecord
impl StateEERecord
Sourcepub fn from_state_est_event(event: &StateEstEvent) -> Result<Self, KERIError>
pub fn from_state_est_event(event: &StateEstEvent) -> Result<Self, KERIError>
Create a new StateEERecord from a StateEstEvent
Trait Implementations§
Source§impl Clone for StateEERecord
impl Clone for StateEERecord
Source§fn clone(&self) -> StateEERecord
fn clone(&self) -> StateEERecord
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 StateEERecord
impl Debug for StateEERecord
Source§impl Default for StateEERecord
impl Default for StateEERecord
Source§impl<'de> Deserialize<'de> for StateEERecord
impl<'de> Deserialize<'de> for StateEERecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateEERecord
Source§impl PartialEq for StateEERecord
impl PartialEq for StateEERecord
Source§impl Serialize for StateEERecord
impl Serialize for StateEERecord
impl StructuralPartialEq for StateEERecord
Auto Trait Implementations§
impl Freeze for StateEERecord
impl RefUnwindSafe for StateEERecord
impl Send for StateEERecord
impl Sync for StateEERecord
impl Unpin for StateEERecord
impl UnsafeUnpin for StateEERecord
impl UnwindSafe for StateEERecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.