#[non_exhaustive]pub enum DelegationStatus {
Direct,
ChainVerified {
org_did: IdentityDID,
member_did: IdentityDID,
member_role: Role,
device_did: CanonicalDid,
},
ChainBroken {
reason: String,
},
NoDelegationData,
}Expand description
Outcome of verifying the delegation chain.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Direct
The actor signed directly (no delegation needed).
ChainVerified
The delegation chain verified successfully.
Fields
§
org_did: IdentityDIDThe organization identity that issued the delegation.
§
member_did: IdentityDIDThe member identity that received the delegation.
§
device_did: CanonicalDidThe device that performed the action on behalf of the member.
ChainBroken
The delegation chain could not be verified.
NoDelegationData
No delegation data was present in the bundle.
Trait Implementations§
Source§impl Clone for DelegationStatus
impl Clone for DelegationStatus
Source§fn clone(&self) -> DelegationStatus
fn clone(&self) -> DelegationStatus
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 DelegationStatus
impl Debug for DelegationStatus
Source§impl<'de> Deserialize<'de> for DelegationStatus
impl<'de> Deserialize<'de> for DelegationStatus
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 PartialEq for DelegationStatus
impl PartialEq for DelegationStatus
Source§fn eq(&self, other: &DelegationStatus) -> bool
fn eq(&self, other: &DelegationStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DelegationStatus
impl Serialize for DelegationStatus
impl StructuralPartialEq for DelegationStatus
Auto Trait Implementations§
impl Freeze for DelegationStatus
impl RefUnwindSafe for DelegationStatus
impl Send for DelegationStatus
impl Sync for DelegationStatus
impl Unpin for DelegationStatus
impl UnsafeUnpin for DelegationStatus
impl UnwindSafe for DelegationStatus
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