pub struct PrincipalRef {
pub id: PrincipalId,
pub kind: PrincipalKind,
pub workload_uid: Option<CardUid>,
pub credential_id: Option<Uuid>,
}Expand description
Projection of one delegation participant.
Account identity plus the participant’s own root and non-secret credential provenance. Historical participants confer no authority.
Fields§
§id: PrincipalIdStable principal id.
kind: PrincipalKindPrincipal kind.
workload_uid: Option<CardUid>The participant’s exact root.
credential_id: Option<Uuid>Non-secret id of the credential the participant authenticated with.
Implementations§
Source§impl PrincipalRef
impl PrincipalRef
Sourcepub fn from_principal(principal: &Principal) -> Self
pub fn from_principal(principal: &Principal) -> Self
Project a full principal into a delegation-chain reference.
Trait Implementations§
Source§impl Clone for PrincipalRef
impl Clone for PrincipalRef
Source§impl Debug for PrincipalRef
impl Debug for PrincipalRef
Source§impl<'de> Deserialize<'de> for PrincipalRef
impl<'de> Deserialize<'de> for PrincipalRef
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 PrincipalRef
Source§impl PartialEq for PrincipalRef
impl PartialEq for PrincipalRef
Source§impl Serialize for PrincipalRef
impl Serialize for PrincipalRef
impl StructuralPartialEq for PrincipalRef
Auto Trait Implementations§
impl Freeze for PrincipalRef
impl RefUnwindSafe for PrincipalRef
impl Send for PrincipalRef
impl Sync for PrincipalRef
impl Unpin for PrincipalRef
impl UnsafeUnpin for PrincipalRef
impl UnwindSafe for PrincipalRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.