[][src]Struct validators::email::Email

pub struct Email { /* fields omitted */ }

Methods

impl Email[src]

pub fn get_local(&self) -> &str[src]

pub fn get_domain(&self) -> &Domain[src]

pub fn get_full_email(&self) -> &str[src]

pub fn into_string(self) -> String[src]

impl Email[src]

pub fn from_string(full_email: String) -> Result<Self, EmailError>[src]

pub fn from_str(full_email: &str) -> Result<Self, EmailError>[src]

Trait Implementations

impl Validated for Email[src]

impl ValidatedWrapper for Email[src]

type Error = EmailError

impl Clone for Email[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Email> for Email[src]

impl Eq for Email[src]

impl Display for Email[src]

impl Debug for Email[src]

impl Deref for Email[src]

type Target = str

The resulting type after dereferencing.

impl Hash for Email[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> FromFormValue<'a> for Email[src]

type Error = EmailError

The associated error which can be returned from parsing. It is a good idea to have the return type be or contain an &'v str so that the unparseable string can be examined after a bad parse. Read more

fn default() -> Option<Self>[src]

Returns a default value to be used when the form field does not exist. If this returns None, then the field is required. Otherwise, this should return Some(default_value). The default implementation simply returns None. Read more

impl<'a> FromParam<'a> for Email[src]

type Error = EmailError

The associated error to be returned if parsing/validation fails.

impl Serialize for Email[src]

impl<'de> Deserialize<'de> for Email[src]

Auto Trait Implementations

impl Sync for Email

impl Send for Email

impl Unpin for Email

impl RefUnwindSafe for Email

impl UnwindSafe for Email

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> IntoCollection<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input,