pub enum ProvSource {
StringAllowList,
UcanChain {
issuer_did: String,
chain_depth: u8,
},
}Expand description
Where a granted capability came from (architecture §5.2 — the two
composing mechanisms whose union forms granted_capabilities).
Variants§
StringAllowList
Granted by the operator string allow-list
(--grant-capability ∩ Hello.requested_capabilities).
UcanChain
Granted by a UCAN-lite chain link. issuer_did is the link’s
iss; chain_depth is its position (0 = root).
Trait Implementations§
Source§impl Clone for ProvSource
impl Clone for ProvSource
Source§fn clone(&self) -> ProvSource
fn clone(&self) -> ProvSource
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 ProvSource
impl Debug for ProvSource
Source§impl<'de> Deserialize<'de> for ProvSource
impl<'de> Deserialize<'de> for ProvSource
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 ProvSource
impl PartialEq for ProvSource
Source§fn eq(&self, other: &ProvSource) -> bool
fn eq(&self, other: &ProvSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProvSource
impl Serialize for ProvSource
impl Eq for ProvSource
impl StructuralPartialEq for ProvSource
Auto Trait Implementations§
impl Freeze for ProvSource
impl RefUnwindSafe for ProvSource
impl Send for ProvSource
impl Sync for ProvSource
impl Unpin for ProvSource
impl UnsafeUnpin for ProvSource
impl UnwindSafe for ProvSource
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