[−][src]Struct sn0int::models::IpAddrUpdate
Fields
id: i32
continent: Option<String>
continent_code: Option<String>
country: Option<String>
country_code: Option<String>
city: Option<String>
latitude: Option<f32>
longitude: Option<f32>
asn: Option<i32>
as_org: Option<String>
description: Option<String>
reverse_dns: Option<String>
Trait Implementations
impl<'update> AsChangeset for &'update IpAddrUpdate
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Option<Eq<continent, &'update String>>, Option<Eq<continent_code, &'update String>>, Option<Eq<country, &'update String>>, Option<Eq<country_code, &'update String>>, Option<Eq<city, &'update String>>, Option<Eq<latitude, &'update f32>>, Option<Eq<longitude, &'update f32>>, Option<Eq<asn, &'update i32>>, Option<Eq<as_org, &'update String>>, Option<Eq<description, &'update String>>, Option<Eq<reverse_dns, &'update String>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'update> AsChangeset for IpAddrUpdate
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Option<Eq<continent, String>>, Option<Eq<continent_code, String>>, Option<Eq<country, String>>, Option<Eq<country_code, String>>, Option<Eq<city, String>>, Option<Eq<latitude, f32>>, Option<Eq<longitude, f32>>, Option<Eq<asn, i32>>, Option<Eq<as_org, String>>, Option<Eq<description, String>>, Option<Eq<reverse_dns, String>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl Debug for IpAddrUpdate
[src]
impl<'de> Deserialize<'de> for IpAddrUpdate
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasTable for IpAddrUpdate
[src]
impl<'ident> Identifiable for &'ident IpAddrUpdate
[src]
impl Serialize for IpAddrUpdate
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Updateable<IpAddr> for IpAddrUpdate
[src]
fn changeset(&mut self, existing: &IpAddr)
[src]
fn fmt(&self, updates: &mut Vec<String>)
[src]
fn to_string(&self) -> String
[src]
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)
[src]
fn clear_if_lower_or_equal<T: PartialOrd>(
update: &mut Option<T>,
existing: &Option<T>
)
[src]
update: &mut Option<T>,
existing: &Option<T>
)
fn clear_if_greater_or_equal<T: PartialOrd>(
update: &mut Option<T>,
existing: &Option<T>
)
[src]
update: &mut Option<T>,
existing: &Option<T>
)
fn push_value<D: Debug>(
updates: &mut Vec<String>,
name: &str,
value: &Option<D>
)
[src]
updates: &mut Vec<String>,
name: &str,
value: &Option<D>
)
fn push_raw<T: AsRef<str>>(
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
[src]
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
impl Upsert for IpAddrUpdate
[src]
Auto Trait Implementations
impl RefUnwindSafe for IpAddrUpdate
impl Send for IpAddrUpdate
impl Sync for IpAddrUpdate
impl Unpin for IpAddrUpdate
impl UnwindSafe for IpAddrUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,