[][src]Struct sn0int::models::Port

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

Fields

id: i32ip_addr_id: i32value: Stringip_addr: Stringport: i32protocol: Stringstatus: Stringunscoped: boolbanner: Option<String>service: Option<String>version: Option<String>

Trait Implementations

impl Model for Port[src]

type ID = str

impl Scopable for Port[src]

impl InsertableStruct<Port> for NewPort[src]

impl Upsertable<Port> for NewPort[src]

type Update = PortUpdate

impl Updateable<Port> for PortUpdate[src]

impl Printable<PrintablePort> for Port[src]

impl Detailed for Port[src]

type T = DetailedPort

impl PartialEq<Port> for Port[src]

impl Debug for Port[src]

impl StructuralPartialEq for Port[src]

impl<__FK> BelongsTo<IpAddr> for Port where
    __FK: Hash + Eq,
    &'__a i32: Into<Option<&'__a __FK>>,
    &'__a IpAddr: Identifiable<Id = &'__a __FK>, 
[src]

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = ip_addr_id

The database column representing the foreign key of the table this struct represents Read more

impl HasTable for Port[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct's identifier. Read more

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Port where
    (i32, i32, String, String, i32, String, String, bool, Option<String>, Option<String>, Option<String>): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, i32, String, String, i32, String, String, bool, Option<String>, Option<String>, Option<String>) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl Serialize for Port[src]

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

Auto Trait Implementations

impl Send for Port

impl Sync for Port

impl Unpin for Port

impl UnwindSafe for Port

impl RefUnwindSafe for Port

Blanket Implementations

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

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

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<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Child where
    Child: BelongingToDsl<&'a [Parent]>, 
[src]

type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output

The query returned by belonging_to

impl<'a, Parent, Child> BelongingToDsl<&'a Parent> for Child where
    Child: HasTable + BelongsTo<Parent>,
    &'a Parent: Identifiable,
    <&'a Parent as Identifiable>::Id: AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
    <Child as HasTable>::Table: FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods
[src]

type Output = <<Child as HasTable>::Table as FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>>::Output

The query returned by belonging_to

impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where
    Child: HasTable + BelongsTo<Parent>,
    &'a Parent: Identifiable,
    Vec<<&'a Parent as Identifiable>::Id>: AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
    <Child as HasTable>::Table: FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods
[src]

type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output

The query returned by belonging_to

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