pub struct PrincipalId(/* private fields */);Expand description
The authenticated principal’s stable id. Never the raw token (docs/05).
Implementations§
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) · 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 PrincipalId
impl Debug for PrincipalId
Source§impl Display for PrincipalId
impl Display for PrincipalId
impl Eq for PrincipalId
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 Ord for PrincipalId
impl Ord for PrincipalId
Source§fn cmp(&self, other: &PrincipalId) -> Ordering
fn cmp(&self, other: &PrincipalId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrincipalId
impl PartialEq for PrincipalId
Source§fn eq(&self, other: &PrincipalId) -> bool
fn eq(&self, other: &PrincipalId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PrincipalId
impl PartialOrd 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