Struct PrincipalId
pub struct PrincipalId(pub String);Expand description
Stable, opaque subject id. The audit Actor, the approval-routing key, the
provenance origin, and (A2A) the peer join key. For an OIDC user this equals
the IdP sub; for the shared-bearer / trusted-local path it is the sentinel
PrincipalId::SHARED_OPERATOR.
Tuple Fields§
§0: StringImplementations§
Source§impl PrincipalId
impl PrincipalId
Trait Implementations§
Source§impl Clone for PrincipalId
impl Clone for PrincipalId
Source§fn clone(&self) -> PrincipalId
fn clone(&self) -> PrincipalId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrincipalId
impl Debug for PrincipalId
Source§impl<'de> Deserialize<'de> for PrincipalId
impl<'de> Deserialize<'de> for PrincipalId
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 From<&str> for PrincipalId
impl From<&str> for PrincipalId
Source§impl From<String> for PrincipalId
impl From<String> for PrincipalId
Source§impl Hash for PrincipalId
impl Hash for PrincipalId
Source§impl PartialEq for PrincipalId
impl PartialEq for PrincipalId
Source§impl Serialize for PrincipalId
impl Serialize for PrincipalId
impl Eq for PrincipalId
impl StructuralPartialEq for PrincipalId
Auto Trait Implementations§
impl Freeze for PrincipalId
impl RefUnwindSafe for PrincipalId
impl Send for PrincipalId
impl Sync for PrincipalId
impl Unpin for PrincipalId
impl UnsafeUnpin for PrincipalId
impl UnwindSafe for PrincipalId
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