pub struct WitnessOperatorInfo {
pub operator: OperatorId,
pub organization: Organization,
pub jurisdiction: Jurisdiction,
pub infrastructure: Infrastructure,
}Expand description
The independence attributes pinned alongside a witness key.
The key itself lives on the witness ref / trust-root entry; combine the two
via WitnessOperatorInfo::to_attributes. Shared by the KERI WitnessRef and
the CT TrustRootWitness so both sides describe operators identically.
Fields§
§operator: OperatorIdThe operator running this witness.
organization: OrganizationThe operator’s organization/affiliation.
jurisdiction: JurisdictionThe operator’s legal/governance jurisdiction.
infrastructure: InfrastructureThe operator’s network/infrastructure zone (ASN or cloud+region).
Implementations§
Source§impl WitnessOperatorInfo
impl WitnessOperatorInfo
Sourcepub fn to_attributes(&self, key: impl Into<String>) -> OperatorAttributes
pub fn to_attributes(&self, key: impl Into<String>) -> OperatorAttributes
Combine these attributes with a witness key into OperatorAttributes.
Args:
key: The witness’s curve-tagged verkey/AID (the Sybil-collapse key).
Usage:
ⓘ
let attrs = info.to_attributes(witness.aid.as_str());Trait Implementations§
Source§impl Clone for WitnessOperatorInfo
impl Clone for WitnessOperatorInfo
Source§fn clone(&self) -> WitnessOperatorInfo
fn clone(&self) -> WitnessOperatorInfo
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 WitnessOperatorInfo
impl Debug for WitnessOperatorInfo
Source§impl<'de> Deserialize<'de> for WitnessOperatorInfo
impl<'de> Deserialize<'de> for WitnessOperatorInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WitnessOperatorInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WitnessOperatorInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WitnessOperatorInfo
Source§impl PartialEq for WitnessOperatorInfo
impl PartialEq for WitnessOperatorInfo
Source§fn eq(&self, other: &WitnessOperatorInfo) -> bool
fn eq(&self, other: &WitnessOperatorInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WitnessOperatorInfo
impl Serialize for WitnessOperatorInfo
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 WitnessOperatorInfo
Auto Trait Implementations§
impl Freeze for WitnessOperatorInfo
impl RefUnwindSafe for WitnessOperatorInfo
impl Send for WitnessOperatorInfo
impl Sync for WitnessOperatorInfo
impl Unpin for WitnessOperatorInfo
impl UnsafeUnpin for WitnessOperatorInfo
impl UnwindSafe for WitnessOperatorInfo
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.