Struct sn0int::models::PhoneNumberUpdate
source · 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: i32
§name: 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§
source§impl<'update> AsChangeset for &'update PhoneNumberUpdate
impl<'update> AsChangeset for &'update PhoneNumberUpdate
§type Changeset = <(Option<Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <&'update bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>, Option<Eq<last_online, <&'update NaiveDateTime as AsExpression<<last_online as Expression>::SqlType>>::Expression>>, Option<Eq<country, <&'update String as AsExpression<<country as Expression>::SqlType>>::Expression>>, Option<Eq<carrier, <&'update String as AsExpression<<carrier as Expression>::SqlType>>::Expression>>, Option<Eq<line, <&'update String as AsExpression<<line as Expression>::SqlType>>::Expression>>, Option<Eq<is_ported, <&'update bool as AsExpression<<is_ported as Expression>::SqlType>>::Expression>>, Option<Eq<last_ported, <&'update NaiveDateTime as AsExpression<<last_ported as Expression>::SqlType>>::Expression>>, Option<Eq<caller_name, <&'update String as AsExpression<<caller_name as Expression>::SqlType>>::Expression>>, Option<Eq<caller_type, <&'update String as AsExpression<<caller_type as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <&'update bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>, Option<Eq<last_online, <&'update NaiveDateTime as AsExpression<<last_online as Expression>::SqlType>>::Expression>>, Option<Eq<country, <&'update String as AsExpression<<country as Expression>::SqlType>>::Expression>>, Option<Eq<carrier, <&'update String as AsExpression<<carrier as Expression>::SqlType>>::Expression>>, Option<Eq<line, <&'update String as AsExpression<<line as Expression>::SqlType>>::Expression>>, Option<Eq<is_ported, <&'update bool as AsExpression<<is_ported as Expression>::SqlType>>::Expression>>, Option<Eq<last_ported, <&'update NaiveDateTime as AsExpression<<last_ported as Expression>::SqlType>>::Expression>>, Option<Eq<caller_name, <&'update String as AsExpression<<caller_name as Expression>::SqlType>>::Expression>>, Option<Eq<caller_type, <&'update String as AsExpression<<caller_type as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl<'update> AsChangeset for PhoneNumberUpdate
impl<'update> AsChangeset for PhoneNumberUpdate
§type Changeset = <(Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>, Option<Eq<last_online, <NaiveDateTime as AsExpression<<last_online as Expression>::SqlType>>::Expression>>, Option<Eq<country, <String as AsExpression<<country as Expression>::SqlType>>::Expression>>, Option<Eq<carrier, <String as AsExpression<<carrier as Expression>::SqlType>>::Expression>>, Option<Eq<line, <String as AsExpression<<line as Expression>::SqlType>>::Expression>>, Option<Eq<is_ported, <bool as AsExpression<<is_ported as Expression>::SqlType>>::Expression>>, Option<Eq<last_ported, <NaiveDateTime as AsExpression<<last_ported as Expression>::SqlType>>::Expression>>, Option<Eq<caller_name, <String as AsExpression<<caller_name as Expression>::SqlType>>::Expression>>, Option<Eq<caller_type, <String as AsExpression<<caller_type as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>, Option<Eq<last_online, <NaiveDateTime as AsExpression<<last_online as Expression>::SqlType>>::Expression>>, Option<Eq<country, <String as AsExpression<<country as Expression>::SqlType>>::Expression>>, Option<Eq<carrier, <String as AsExpression<<carrier as Expression>::SqlType>>::Expression>>, Option<Eq<line, <String as AsExpression<<line as Expression>::SqlType>>::Expression>>, Option<Eq<is_ported, <bool as AsExpression<<is_ported as Expression>::SqlType>>::Expression>>, Option<Eq<last_ported, <NaiveDateTime as AsExpression<<last_ported as Expression>::SqlType>>::Expression>>, Option<Eq<caller_name, <String as AsExpression<<caller_name as Expression>::SqlType>>::Expression>>, Option<Eq<caller_type, <String as AsExpression<<caller_type as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl Debug for PhoneNumberUpdate
impl Debug for PhoneNumberUpdate
source§impl<'de> Deserialize<'de> for PhoneNumberUpdate
impl<'de> Deserialize<'de> for PhoneNumberUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HasTable for PhoneNumberUpdate
impl HasTable for PhoneNumberUpdate
source§impl<'ident> Identifiable for &'ident PhoneNumberUpdate
impl<'ident> Identifiable for &'ident PhoneNumberUpdate
source§impl Serialize for PhoneNumberUpdate
impl Serialize for PhoneNumberUpdate
source§impl Updateable<PhoneNumber> for PhoneNumberUpdate
impl Updateable<PhoneNumber> for PhoneNumberUpdate
fn changeset(&mut self, existing: &PhoneNumber)
fn fmt(&self, updates: &mut Vec<String>, colors: bool)
fn to_plain_str(&self) -> String
fn to_term_str(&self) -> String
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)
fn clear_if_lower_or_equal<T: PartialOrd>( update: &mut Option<T>, existing: &Option<T> )
fn clear_if_greater_or_equal<T: PartialOrd>( update: &mut Option<T>, existing: &Option<T> )
fn push_value<D: Debug>( updates: &mut Vec<String>, name: &str, value: &Option<D>, colors: bool )
fn push_raw<T: AsRef<str>>( updates: &mut Vec<String>, name: &str, value: Option<T>, colors: bool )
Auto Trait Implementations§
impl RefUnwindSafe for PhoneNumberUpdate
impl Send for PhoneNumberUpdate
impl Sync for PhoneNumberUpdate
impl Unpin for PhoneNumberUpdate
impl UnwindSafe for PhoneNumberUpdate
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more