[][src]Struct sn0int::models::NewIpAddr

pub struct NewIpAddr {
    pub family: String,
    pub value: String,
    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

family: Stringvalue: Stringcontinent: 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 InsertableStruct<IpAddr> for NewIpAddr[src]

impl Upsertable<IpAddr> for NewIpAddr[src]

type Update = IpAddrUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Printable<PrintableIpAddr> for NewIpAddr[src]

impl Clone for NewIpAddr[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NewIpAddr[src]

impl<'insert> Insertable<table> for NewIpAddr[src]

type Values = <(Option<Eq<family, String>>, Option<Eq<value, String>>, 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 Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl<'insert> Insertable<table> for &'insert NewIpAddr[src]

type Values = <(Option<Eq<family, &'insert String>>, Option<Eq<value, &'insert String>>, Option<Eq<continent, &'insert String>>, Option<Eq<continent_code, &'insert String>>, Option<Eq<country, &'insert String>>, Option<Eq<country_code, &'insert String>>, Option<Eq<city, &'insert String>>, Option<Eq<latitude, &'insert f32>>, Option<Eq<longitude, &'insert f32>>, Option<Eq<asn, &'insert i32>>, Option<Eq<as_org, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<reverse_dns, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl<'insert> UndecoratedInsertRecord<table> for NewIpAddr[src]

impl Serialize for NewIpAddr[src]

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

Auto Trait Implementations

impl Send for NewIpAddr

impl Sync for NewIpAddr

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

The type returned in the event of a conversion error.

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

impl<T> Same 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>, 

Sets value as a parameter of self.