pub enum InviteeRestriction {
Pubkey {
fingerprint: String,
},
Cert {
issuer_pubkey: String,
allowed_subjects: Vec<String>,
},
Open,
}Expand description
Who may redeem an invitation. Three shapes; the default for new
invitations is Cert.
Variants§
Pubkey
Tightest: only the agent whose pubkey hashes to fingerprint may
join. Fingerprint is sha256(canonical_pubkey)’s first 16 hex
chars, matching pubkey_fingerprint in the trust CLI.
Cert
Production sweet spot: any agent holding a certificate issued by
issuer_pubkey whose subject is in allowed_subjects.
Open
Anyone holding the blob may redeem. Opt-in only; the CLI refuses
to mint an Open invitation without an explicit --open flag.
Trait Implementations§
Source§impl Clone for InviteeRestriction
impl Clone for InviteeRestriction
Source§fn clone(&self) -> InviteeRestriction
fn clone(&self) -> InviteeRestriction
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 InviteeRestriction
impl Debug for InviteeRestriction
Source§impl<'de> Deserialize<'de> for InviteeRestriction
impl<'de> Deserialize<'de> for InviteeRestriction
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
impl Eq for InviteeRestriction
Source§impl PartialEq for InviteeRestriction
impl PartialEq for InviteeRestriction
Source§fn eq(&self, other: &InviteeRestriction) -> bool
fn eq(&self, other: &InviteeRestriction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InviteeRestriction
impl Serialize for InviteeRestriction
impl StructuralPartialEq for InviteeRestriction
Auto Trait Implementations§
impl Freeze for InviteeRestriction
impl RefUnwindSafe for InviteeRestriction
impl Send for InviteeRestriction
impl Sync for InviteeRestriction
impl Unpin for InviteeRestriction
impl UnsafeUnpin for InviteeRestriction
impl UnwindSafe for InviteeRestriction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.