pub enum AnchorBinding {
Subject,
Principal(ObjectId),
}Expand description
How a capability declaration binds the principal that can verify the issued capability.
At verify time, the verifier proves “I am <anchor>” by supplying
Designation { label: "anchor", value: <its-own-principal-name> }. The
capability is honored only by the named principal. A receiving principal
who is not the anchor can still attenuate and delegate the capability
downward; the capability simply must eventually be presented back to the
anchor for verification.
Variants§
Subject
Anchor to the subject of this declaration. The engine resolves to a concrete principal at mint time.
Principal(ObjectId)
Anchor to a specific named principal (trustee or multi-organization pattern).
Trait Implementations§
Source§impl Clone for AnchorBinding
impl Clone for AnchorBinding
Source§fn clone(&self) -> AnchorBinding
fn clone(&self) -> AnchorBinding
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 AnchorBinding
impl Debug for AnchorBinding
Source§impl<'de> Deserialize<'de> for AnchorBinding
impl<'de> Deserialize<'de> for AnchorBinding
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 AnchorBinding
impl PartialEq for AnchorBinding
Source§fn eq(&self, other: &AnchorBinding) -> bool
fn eq(&self, other: &AnchorBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnchorBinding
impl Serialize for AnchorBinding
impl Eq for AnchorBinding
impl StructuralPartialEq for AnchorBinding
Auto Trait Implementations§
impl Freeze for AnchorBinding
impl RefUnwindSafe for AnchorBinding
impl Send for AnchorBinding
impl Sync for AnchorBinding
impl Unpin for AnchorBinding
impl UnsafeUnpin for AnchorBinding
impl UnwindSafe for AnchorBinding
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<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.