[−][src]Struct sn0int::models::NewPhoneNumber
Fields
value: String
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>
unscoped: bool
Trait Implementations
impl InsertableStruct<PhoneNumber> for NewPhoneNumber
[src]
fn value(&self) -> &str
[src]
fn set_scoped(&mut self, scoped: bool)
[src]
fn insert(&self, db: &Database) -> Result<()>
[src]
impl Upsertable<PhoneNumber> for NewPhoneNumber
[src]
type Update = PhoneNumberUpdate
fn upsert(self, existing: &PhoneNumber) -> Self::Update
[src]
fn upsert_opt<T: PartialEq>(
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
[src]
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
impl Printable<PrintablePhoneNumber> for NewPhoneNumber
[src]
fn printable(&self, _db: &Database) -> Result<PrintablePhoneNumber>
[src]
impl Clone for NewPhoneNumber
[src]
fn clone(&self) -> NewPhoneNumber
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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>>, Option<Eq<unscoped, bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
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>>, Option<Eq<unscoped, &'insert bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'insert> UndecoratedInsertRecord<table> for NewPhoneNumber
[src]
impl Serialize for NewPhoneNumber
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for NewPhoneNumber
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for NewPhoneNumber
impl Sync for NewPhoneNumber
impl Unpin for NewPhoneNumber
impl UnwindSafe for NewPhoneNumber
impl RefUnwindSafe for NewPhoneNumber
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> 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>,
T: Parameter<Self>,