[][src]Struct sn0int::models::IpAddrUpdate

pub struct IpAddrUpdate {
    pub id: i32,
    pub continent: Option<String>,
    pub continent_code: Option<String>,
    pub country: Option<String>,
    pub country_code: Option<String>,
    pub city: Option<String>,
    pub latitude: Option<f32>,
    pub longitude: Option<f32>,
    pub asn: Option<i32>,
    pub as_org: Option<String>,
    pub description: Option<String>,
    pub reverse_dns: Option<String>,
}

Fields

id: i32continent: 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 Upsert for IpAddrUpdate
[src]

impl Updateable<IpAddr> for IpAddrUpdate
[src]

fn to_string(&self) -> String
[src]

fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)
[src]

fn push_value<D: Debug>(
    updates: &mut Vec<String>,
    name: &str,
    value: &Option<D>
)
[src]

fn push_raw<T: AsRef<str>>(
    updates: &mut Vec<String>,
    name: &str,
    value: Option<T>
)
[src]

impl Debug for IpAddrUpdate
[src]

impl HasTable for IpAddrUpdate
[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

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

impl Serialize for IpAddrUpdate
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

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

impl<T> Erased for T