pub struct PrincipalId(/* private fields */);Expand description
The opaque digest identity of an independent approval principal.
Implementations§
Source§impl PrincipalId
impl PrincipalId
Source§impl PrincipalId
impl PrincipalId
Sourcepub fn digest_label(label: &str) -> Self
pub fn digest_label(label: &str) -> Self
Hash a stable principal label without persisting it in transaction state.
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 moreimpl Copy for PrincipalId
Source§impl Debug for PrincipalId
impl Debug for PrincipalId
Source§impl Display for PrincipalId
impl Display for PrincipalId
impl Eq for PrincipalId
Source§impl FromStr for PrincipalId
impl FromStr 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PrincipalId
impl PartialEq for PrincipalId
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