pub struct PrincipalId(/* private fields */);Expand description
A validated principal identifier supplied by the application.
Principal IDs contain 1 to 256 visible ASCII characters (0x21 through 0x7E) other than the comma, which separates ids on the wire.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PrincipalId
impl AsRef<str> for PrincipalId
Source§impl Borrow<str> for PrincipalId
impl Borrow<str> for PrincipalId
Source§impl Clone for PrincipalId
impl Clone for PrincipalId
Source§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 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
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
Source§impl Serialize for PrincipalId
impl Serialize for PrincipalId
impl StructuralPartialEq for PrincipalId
Source§impl TryFrom<&str> for PrincipalId
impl TryFrom<&str> 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