pub enum IdentityType {
Human,
Machine,
Institution,
}Expand description
Type of identity in the Tenzro Decentralized Identity Protocol.
The protocol recognises three identity classes — the enum collapses
the two machine classes into a single tag, distinguished at runtime
by the controller_did field on IdentityData::Machine:
- Human (
did:tenzro:human:{uuid}) - Delegated agent — machine with a human controller
(
did:tenzro:machine:{controller}:{uuid}) - Autonomous agent — machine with no controller
(
did:tenzro:machine:{uuid})
Variants§
Human
Human identity
Machine
Machine/Agent identity (delegated or autonomous)
Institution
Institution identity (did:tenzro:institution:<lei>:<uuid>).
Implementations§
Trait Implementations§
Source§impl Clone for IdentityType
impl Clone for IdentityType
Source§fn clone(&self) -> IdentityType
fn clone(&self) -> IdentityType
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 moreimpl Copy for IdentityType
Source§impl Debug for IdentityType
impl Debug for IdentityType
Source§impl<'de> Deserialize<'de> for IdentityType
impl<'de> Deserialize<'de> for IdentityType
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
Source§impl Display for IdentityType
impl Display for IdentityType
impl Eq for IdentityType
Source§impl Hash for IdentityType
impl Hash for IdentityType
Source§impl PartialEq for IdentityType
impl PartialEq for IdentityType
Source§fn eq(&self, other: &IdentityType) -> bool
fn eq(&self, other: &IdentityType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IdentityType
impl Serialize for IdentityType
impl StructuralPartialEq for IdentityType
Auto Trait Implementations§
impl Freeze for IdentityType
impl RefUnwindSafe for IdentityType
impl Send for IdentityType
impl Sync for IdentityType
impl Unpin for IdentityType
impl UnsafeUnpin for IdentityType
impl UnwindSafe for IdentityType
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