[][src]Struct sn0int::models::NewPort

pub struct NewPort {
    pub ip_addr_id: i32,
    pub value: String,
    pub ip_addr: String,
    pub port: i32,
    pub protocol: String,
    pub status: Option<String>,
    pub banner: Option<String>,
    pub service: Option<String>,
    pub version: Option<String>,
    pub unscoped: bool,
}

Fields

ip_addr_id: i32value: Stringip_addr: Stringport: i32protocol: Stringstatus: Option<String>banner: Option<String>service: Option<String>version: Option<String>unscoped: bool

Trait Implementations

impl AutoRule<NewPort> for IpRule[src]

impl Clone for NewPort[src]

impl Debug for NewPort[src]

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

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

type Values = <(Option<Eq<ip_addr_id, i32>>, Option<Eq<value, String>>, Option<Eq<ip_addr, String>>, Option<Eq<port, i32>>, Option<Eq<protocol, String>>, Option<Eq<status, String>>, Option<Eq<banner, String>>, Option<Eq<service, String>>, Option<Eq<version, String>>, Option<Eq<unscoped, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<ip_addr_id, &'insert i32>>, Option<Eq<value, &'insert String>>, Option<Eq<ip_addr, &'insert String>>, Option<Eq<port, &'insert i32>>, Option<Eq<protocol, &'insert String>>, Option<Eq<status, &'insert String>>, Option<Eq<banner, &'insert String>>, Option<Eq<service, &'insert String>>, Option<Eq<version, &'insert String>>, Option<Eq<unscoped, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl InsertableStruct<Port> for NewPort[src]

impl Printable<PrintablePort> for NewPort[src]

impl Serialize for NewPort[src]

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

impl Upsertable<Port> for NewPort[src]

type Update = PortUpdate

Auto Trait Implementations

impl RefUnwindSafe for NewPort

impl Send for NewPort

impl Sync for NewPort

impl Unpin for NewPort

impl UnwindSafe for NewPort

Blanket Implementations

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

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

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

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

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

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

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,