pub struct PrincipalId(Uuid);Expand description
Type-safe ID for principal entities.
Tuple Fields§
§0: UuidTrait 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for PrincipalId
impl ComposeSchema for PrincipalId
Source§impl Debug for PrincipalId
impl Debug for PrincipalId
Source§impl Default for PrincipalId
impl Default 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
Source§impl EntityIdType for PrincipalId
impl EntityIdType for PrincipalId
Source§const ENTITY_NAME: &'static str = "principal"
const ENTITY_NAME: &'static str = "principal"
The name of the entity type (e.g., “tenant”, “trajectory”).
Source§impl FromStr for PrincipalId
impl FromStr 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
Source§impl ToSchema for PrincipalId
impl ToSchema for PrincipalId
impl Copy 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.