[][src]Struct sn0int::models::NewNetblock

pub struct NewNetblock {
    pub family: String,
    pub value: String,
    pub asn: Option<i32>,
    pub as_org: Option<String>,
    pub description: Option<String>,
    pub unscoped: bool,
}

Fields

family: Stringvalue: Stringasn: Option<i32>as_org: Option<String>description: Option<String>unscoped: bool

Trait Implementations

impl AutoRule<NewNetblock> for IpRule[src]

impl InsertableStruct<Netblock> for NewNetblock[src]

impl Upsertable<Netblock> for NewNetblock[src]

type Update = NetblockUpdate

impl Printable<PrintableNetblock> for NewNetblock[src]

impl Clone for NewNetblock[src]

impl Debug for NewNetblock[src]

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

type Values = <(Option<Eq<family, String>>, Option<Eq<value, String>>, Option<Eq<asn, i32>>, Option<Eq<as_org, String>>, Option<Eq<description, String>>, Option<Eq<unscoped, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<family, &'insert String>>, Option<Eq<value, &'insert String>>, Option<Eq<asn, &'insert i32>>, Option<Eq<as_org, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<unscoped, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

impl Serialize for NewNetblock[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> IntoSql for T[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T