pub struct LocalPart(/* private fields */);Expand description
Email local-part text.
Implementations§
Source§impl LocalPart
impl LocalPart
Sourcepub fn new(value: impl AsRef<str>) -> Result<LocalPart, AddressValidationError>
pub fn new(value: impl AsRef<str>) -> Result<LocalPart, AddressValidationError>
Creates a local part using practical validation.
Sourcepub fn new_with_mode(
value: impl AsRef<str>,
mode: AddressValidationMode,
) -> Result<LocalPart, AddressValidationError>
pub fn new_with_mode( value: impl AsRef<str>, mode: AddressValidationMode, ) -> Result<LocalPart, AddressValidationError>
Creates a local part using the requested validation mode.
Trait Implementations§
Source§impl Ord for LocalPart
impl Ord for LocalPart
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 LocalPart
impl PartialOrd for LocalPart
impl Eq for LocalPart
impl StructuralPartialEq for LocalPart
Auto Trait Implementations§
impl Freeze for LocalPart
impl RefUnwindSafe for LocalPart
impl Send for LocalPart
impl Sync for LocalPart
impl Unpin for LocalPart
impl UnsafeUnpin for LocalPart
impl UnwindSafe for LocalPart
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