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

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

Fields

value: Stringname: Option<String>valid: Option<bool>last_online: Option<NaiveDateTime>country: Option<String>carrier: Option<String>line: Option<String>is_ported: Option<bool>last_ported: Option<NaiveDateTime>caller_name: Option<String>caller_type: Option<String>

Trait Implementations

impl InsertableStruct<PhoneNumber> for NewPhoneNumber[src]

impl Upsertable<PhoneNumber> for NewPhoneNumber[src]

type Update = PhoneNumberUpdate

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

impl Printable<PrintablePhoneNumber> for NewPhoneNumber[src]

impl Clone for NewPhoneNumber[src]

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

Performs copy-assignment from source. Read more

impl Debug for NewPhoneNumber[src]

impl<'insert> Insertable<table> for NewPhoneNumber[src]

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

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

impl Serialize for NewPhoneNumber[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.