pub struct NameKey(/* private fields */);Expand description
Name-policy-derived directory entry key.
Use this for exact name preconditions. Keep user-facing spelling in
DisplayName.
Implementations§
Source§impl NameKey
impl NameKey
Sourcepub fn for_display_name(display_name: &DisplayName) -> Self
pub fn for_display_name(display_name: &DisplayName) -> Self
Computes the lookup key for a display name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NameKey
impl<'de> Deserialize<'de> for NameKey
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
impl Eq for NameKey
Source§impl Ord for NameKey
impl Ord for NameKey
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 PartialOrd for NameKey
impl PartialOrd for NameKey
impl StructuralPartialEq for NameKey
Auto Trait Implementations§
impl Freeze for NameKey
impl RefUnwindSafe for NameKey
impl Send for NameKey
impl Sync for NameKey
impl Unpin for NameKey
impl UnsafeUnpin for NameKey
impl UnwindSafe for NameKey
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