[][src]Struct sn0int::models::NewPhoneNumber

pub struct NewPhoneNumber<'a> {
    pub value: &'a str,
    pub name: Option<&'a String>,
    pub valid: Option<bool>,
    pub last_online: Option<NaiveDateTime>,
    pub country: Option<&'a String>,
    pub carrier: Option<&'a String>,
    pub line: Option<&'a String>,
    pub is_ported: Option<bool>,
    pub last_ported: Option<NaiveDateTime>,
    pub caller_name: Option<&'a String>,
    pub caller_type: Option<&'a String>,
}

Fields

value: &'a strname: Option<&'a String>valid: Option<bool>last_online: Option<NaiveDateTime>country: Option<&'a String>carrier: Option<&'a String>line: Option<&'a String>is_ported: Option<bool>last_ported: Option<NaiveDateTime>caller_name: Option<&'a String>caller_type: Option<&'a String>

Trait Implementations

impl<'a> InsertableStruct<PhoneNumber> for NewPhoneNumber<'a>
[src]

impl<'a> Upsertable<PhoneNumber> for NewPhoneNumber<'a>
[src]

type Update = PhoneNumberUpdate

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 NewPhoneNumber<'a>
[src]

type Values = <(Option<Eq<value, &'a str>>, Option<Eq<name, &'a String>>, Option<Eq<valid, bool>>, Option<Eq<last_online, NaiveDateTime>>, Option<Eq<country, &'a String>>, Option<Eq<carrier, &'a String>>, Option<Eq<line, &'a String>>, Option<Eq<is_ported, bool>>, Option<Eq<last_ported, NaiveDateTime>>, Option<Eq<caller_name, &'a String>>, Option<Eq<caller_type, &'a String>>) 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 NewPhoneNumber<'a>
[src]

type Values = <(Option<Eq<value, &'insert &'a str>>, Option<Eq<name, &'insert &'a String>>, Option<Eq<valid, &'insert bool>>, Option<Eq<last_online, &'insert NaiveDateTime>>, Option<Eq<country, &'insert &'a String>>, Option<Eq<carrier, &'insert &'a String>>, Option<Eq<line, &'insert &'a String>>, Option<Eq<is_ported, &'insert bool>>, Option<Eq<last_ported, &'insert NaiveDateTime>>, Option<Eq<caller_name, &'insert &'a String>>, Option<Eq<caller_type, &'insert &'a String>>) 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 NewPhoneNumber<'a>
[src]

Auto Trait Implementations

impl<'a> Send for NewPhoneNumber<'a>

impl<'a> Sync for NewPhoneNumber<'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