[][src]Struct sn0int::models::NewEmail

pub struct NewEmail<'a> {
    pub value: &'a str,
    pub valid: Option<bool>,
}

Fields

value: &'a strvalid: Option<bool>

Trait Implementations

impl<'a> InsertableStruct<Email> for NewEmail<'a>
[src]

impl<'a> Upsertable<Email> for NewEmail<'a>
[src]

type Update = EmailUpdate

fn upsert_str(
    insert: Option<&String>,
    existing: &Option<String>
) -> Option<String>
[src]

fn upsert_bytes(
    insert: Option<&Vec<u8>>,
    existing: &Option<Vec<u8>>
) -> Option<Vec<u8>>
[src]

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl<'a, 'insert> Insertable<table> for NewEmail<'a>
[src]

type Values = <(Option<Eq<value, &'a str>>, Option<Eq<valid, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl<'a, 'insert> Insertable<table> for &'insert NewEmail<'a>
[src]

type Values = <(Option<Eq<value, &'insert &'a str>>, Option<Eq<valid, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl<'a, 'insert> UndecoratedInsertRecord<table> for NewEmail<'a>
[src]

Auto Trait Implementations

impl<'a> Send for NewEmail<'a>

impl<'a> Sync for NewEmail<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Erased for T