pub struct AuthEmail {
pub email: String,
}Expand description
A struct that represents a well-formed email address.
Fields§
§email: StringImplementations§
Source§impl AuthEmail
impl AuthEmail
Sourcepub fn new(email: String) -> Result<AuthEmail, FieldFormatError>
pub fn new(email: String) -> Result<AuthEmail, FieldFormatError>
Returns a new Result<AuthEmail, FieldFormatError>.
§Arguments
The email address you want to validate.
§Errors
You will receive a FieldFormatError, if:
- The email address is not in a valid format.
Trait Implementations§
impl Eq for AuthEmail
impl StructuralPartialEq for AuthEmail
Auto Trait Implementations§
impl Freeze for AuthEmail
impl RefUnwindSafe for AuthEmail
impl Send for AuthEmail
impl Sync for AuthEmail
impl Unpin for AuthEmail
impl UnwindSafe for AuthEmail
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