Struct polyphony_types::schema::AuthEmail
source · 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§
source§impl PartialEq<AuthEmail> for AuthEmail
impl PartialEq<AuthEmail> for AuthEmail
impl Eq for AuthEmail
impl StructuralEq for AuthEmail
impl StructuralPartialEq for AuthEmail
Auto Trait Implementations§
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