pub enum Privilege {
Show 14 variants
All,
Auth,
Sign,
Encrypt,
Elide,
Issue,
Access,
Delegate,
Verify,
Update,
Transfer,
Elect,
Burn,
Revoke,
}Variants§
All
Allow all applicable XID operations
Auth
Authenticate as the subject (e.g., log into services)
Sign
Sign digital communications as the subject
Encrypt
Encrypt messages from the subject
Elide
Elide data under the subject’s control
Issue
Issue or revoke verifiable credentials on the subject’s authority
Access
Access resources under the subject’s control
Delegate
Delegate priviledges to third parties
Verify
Verify (update) the XID document
Update
Update service endpoints
Transfer
Remove the inception key from the XID document
Elect
Add or remove other verifiers (rotate keys)
Burn
Transition to a new provenance mark chain
Revoke
Revoke the XID entirely
Trait Implementations§
Source§impl EnvelopeEncodable for Privilege
impl EnvelopeEncodable for Privilege
Source§impl From<&Privilege> for KnownValue
impl From<&Privilege> for KnownValue
Source§impl TryFrom<&KnownValue> for Privilege
impl TryFrom<&KnownValue> for Privilege
impl Eq for Privilege
impl StructuralPartialEq for Privilege
Auto Trait Implementations§
impl Freeze for Privilege
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnwindSafe for Privilege
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more