[][src]Struct sn0int::models::PhoneNumberUpdate

pub struct PhoneNumberUpdate {
    pub id: i32,
    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

id: i32name: 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<'update> AsChangeset for &'update PhoneNumberUpdate[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Option<Eq<name, &'update String>>, Option<Eq<valid, &'update bool>>, Option<Eq<last_online, &'update NaiveDateTime>>, Option<Eq<country, &'update String>>, Option<Eq<carrier, &'update String>>, Option<Eq<line, &'update String>>, Option<Eq<is_ported, &'update bool>>, Option<Eq<last_ported, &'update NaiveDateTime>>, Option<Eq<caller_name, &'update String>>, Option<Eq<caller_type, &'update String>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for PhoneNumberUpdate[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(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 AsChangeset>::Changeset

The update statement this type represents

impl Debug for PhoneNumberUpdate[src]

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

impl HasTable for PhoneNumberUpdate[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident PhoneNumberUpdate[src]

type Id = &'ident i32

The type of this struct's identifier. Read more

impl Serialize for PhoneNumberUpdate[src]

impl Updateable<PhoneNumber> for PhoneNumberUpdate[src]

impl Upsert for PhoneNumberUpdate[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,