pub enum ConfigTrait {
EstablishmentOnly,
DoNotDelegate,
RegistrarBackers,
NoRegistrarBackers,
}Expand description
KERI configuration trait codes.
These control identity behavior at inception and may be updated at rotation
(for RB/NRB only). If two conflicting traits appear, the latter supersedes.
Usage:
use auths_keri::ConfigTrait;
let traits: Vec<ConfigTrait> = serde_json::from_str(r#"["EO","DND"]"#).unwrap();
assert!(traits.contains(&ConfigTrait::EstablishmentOnly));Variants§
EstablishmentOnly
Establishment-Only: only establishment events in KEL.
DoNotDelegate
Do-Not-Delegate: cannot act as delegator.
RegistrarBackers
Registrar Backers: backer list provides registrar backer AIDs.
NoRegistrarBackers
No Registrar Backers: switch back to witnesses.
Trait Implementations§
Source§impl Clone for ConfigTrait
impl Clone for ConfigTrait
Source§fn clone(&self) -> ConfigTrait
fn clone(&self) -> ConfigTrait
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 ConfigTrait
impl Debug for ConfigTrait
Source§impl<'de> Deserialize<'de> for ConfigTrait
impl<'de> Deserialize<'de> for ConfigTrait
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigTrait, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigTrait, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfigTrait
Source§impl Hash for ConfigTrait
impl Hash for ConfigTrait
Source§impl PartialEq for ConfigTrait
impl PartialEq for ConfigTrait
Source§fn eq(&self, other: &ConfigTrait) -> bool
fn eq(&self, other: &ConfigTrait) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigTrait
impl Serialize for ConfigTrait
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConfigTrait
Auto Trait Implementations§
impl Freeze for ConfigTrait
impl RefUnwindSafe for ConfigTrait
impl Send for ConfigTrait
impl Sync for ConfigTrait
impl Unpin for ConfigTrait
impl UnsafeUnpin for ConfigTrait
impl UnwindSafe for ConfigTrait
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.