Struct DisplayName
pub struct DisplayName(/* private fields */);Expand description
Human-readable display name for a mailbox.
Implementations§
§impl DisplayName
impl DisplayName
pub fn new(
value: impl AsRef<str>,
) -> Result<DisplayName, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<DisplayName, AddressValidationError>
Creates a display name.
Trait Implementations§
§impl AsRef<str> for DisplayName
impl AsRef<str> for DisplayName
§impl Clone for DisplayName
impl Clone for DisplayName
§fn clone(&self) -> DisplayName
fn clone(&self) -> DisplayName
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 more§impl Debug for DisplayName
impl Debug for DisplayName
§impl Display for DisplayName
impl Display for DisplayName
§impl FromStr for DisplayName
impl FromStr for DisplayName
§type Err = AddressValidationError
type Err = AddressValidationError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<DisplayName, <DisplayName as FromStr>::Err>
fn from_str(value: &str) -> Result<DisplayName, <DisplayName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for DisplayName
impl Hash for DisplayName
§impl Ord for DisplayName
impl Ord for DisplayName
§impl PartialEq for DisplayName
impl PartialEq for DisplayName
§impl PartialOrd for DisplayName
impl PartialOrd for DisplayName
impl Eq 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