Struct sn0int::models::PhoneNumber
source · pub struct PhoneNumber {Show 13 fields
pub id: i32,
pub value: String,
pub name: Option<String>,
pub unscoped: bool,
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
§value: String
§name: Option<String>
§unscoped: bool
§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 Debug for PhoneNumber
impl Debug for PhoneNumber
source§impl<'de> Deserialize<'de> for PhoneNumber
impl<'de> Deserialize<'de> for PhoneNumber
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 Detailed for PhoneNumber
impl Detailed for PhoneNumber
source§impl HasTable for PhoneNumber
impl HasTable for PhoneNumber
source§impl<'ident> Identifiable for &'ident PhoneNumber
impl<'ident> Identifiable for &'ident PhoneNumber
source§impl InsertableStruct<PhoneNumber> for NewPhoneNumber
impl InsertableStruct<PhoneNumber> for NewPhoneNumber
source§impl Model for PhoneNumber
impl Model for PhoneNumber
type ID = str
fn to_string(&self) -> String
fn list(db: &Database) -> Result<Vec<Self>>
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
fn delete(db: &Database, filter: &Filter) -> Result<usize>
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
fn id(&self) -> i32
fn value(&self) -> &Self::ID
fn by_id(db: &Database, my_id: i32) -> Result<Self>
fn get(db: &Database, query: &Self::ID) -> Result<Self>
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
fn filter_with_param( _db: &Database, _filter: &Filter, _param: &str ) -> Result<Vec<Self>>
fn get_id(db: &Database, query: &Self::ID) -> Result<i32>
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>
fn blob(&self) -> Option<&str>
source§impl PartialEq<PhoneNumber> for PhoneNumber
impl PartialEq<PhoneNumber> for PhoneNumber
source§fn eq(&self, other: &PhoneNumber) -> bool
fn eq(&self, other: &PhoneNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Printable<PrintablePhoneNumber> for PhoneNumber
impl Printable<PrintablePhoneNumber> for PhoneNumber
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for PhoneNumberwhere
(i32, String, Option<String>, bool, Option<bool>, Option<NaiveDateTime>, Option<String>, Option<String>, Option<String>, Option<bool>, Option<NaiveDateTime>, Option<String>, Option<String>): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for PhoneNumberwhere (i32, String, Option<String>, bool, Option<bool>, Option<NaiveDateTime>, Option<String>, Option<String>, Option<String>, Option<bool>, Option<NaiveDateTime>, Option<String>, Option<String>): Queryable<__ST, __DB>,
source§impl Scopable for PhoneNumber
impl Scopable for PhoneNumber
source§impl Serialize for PhoneNumber
impl Serialize for PhoneNumber
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 )
source§impl Upsertable<PhoneNumber> for NewPhoneNumber
impl Upsertable<PhoneNumber> for NewPhoneNumber
type Update = PhoneNumberUpdate
fn upsert(self, existing: &PhoneNumber) -> Self::Update
fn upsert_opt<T: PartialEq>( insert: Option<T>, existing: &Option<T> ) -> Option<T>
impl StructuralPartialEq for PhoneNumber
Auto Trait Implementations§
impl RefUnwindSafe for PhoneNumber
impl Send for PhoneNumber
impl Sync for PhoneNumber
impl Unpin for PhoneNumber
impl UnwindSafe for PhoneNumber
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