Struct stepflow_data::value::EmailValue[][src]

pub struct EmailValue { /* fields omitted */ }

The implementation for an email value.

NOTE: this is a really basic e-mail validity check and misses several cases.


impl EmailValue[src]

pub fn try_new<STR>(val: STR) -> Result<Self, InvalidValue> where
    STR: Into<Cow<'static, str>>, 

pub fn validate(val: &Cow<'static, str>) -> Result<(), InvalidValue>[src]

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

pub fn boxed(self) -> Box<dyn Value>[src]

Trait Implementations

impl Clone for EmailValue[src]

impl Debug for EmailValue[src]

impl FromStr for EmailValue[src]

type Err = InvalidValue

The associated error which can be returned from parsing.

impl PartialEq<EmailValue> for EmailValue[src]

impl StructuralPartialEq for EmailValue[src]

impl Value for EmailValue[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.