pub struct DisplayName(/* private fields */);Expand description
Human-readable display name value object.
Display names are profile metadata only. They are not lookup identifiers and must never be used for authentication.
Implementations§
Source§impl DisplayName
impl DisplayName
Sourcepub fn parse(input: impl AsRef<str>) -> NythosResult<Self>
pub fn parse(input: impl AsRef<str>) -> NythosResult<Self>
Parses and validates a display name while preserving user-facing casing.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consumes the display name and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for DisplayName
impl AsRef<str> for DisplayName
Source§impl Clone for DisplayName
impl Clone for DisplayName
Source§fn clone(&self) -> DisplayName
fn clone(&self) -> DisplayName
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 DisplayName
impl Debug for DisplayName
Source§impl<'de> Deserialize<'de> for DisplayName
impl<'de> Deserialize<'de> for DisplayName
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 DisplayName
impl Display for DisplayName
impl Eq for DisplayName
Source§impl FromStr for DisplayName
impl FromStr for DisplayName
Source§impl PartialEq for DisplayName
impl PartialEq for DisplayName
Source§fn eq(&self, other: &DisplayName) -> bool
fn eq(&self, other: &DisplayName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DisplayName
impl Serialize for DisplayName
impl StructuralPartialEq for DisplayName
Auto Trait Implementations§
impl Freeze for DisplayName
impl RefUnwindSafe for DisplayName
impl Send for DisplayName
impl Sync for DisplayName
impl Unpin for DisplayName
impl UnsafeUnpin for DisplayName
impl UnwindSafe for DisplayName
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