[−][src]Struct sn0int::models::Port
Fields
id: i32
ip_addr_id: i32
value: String
ip_addr: String
port: i32
protocol: String
status: String
unscoped: bool
service: Option<String>
version: Option<String>
Trait Implementations
impl Model for Port
[src]
type ID = str
fn to_string(&self) -> String
[src]
fn list(db: &Database) -> Result<Vec<Self>>
[src]
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
[src]
fn delete(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
[src]
fn id(&self) -> i32
[src]
fn value(&self) -> &Self::ID
[src]
fn by_id(db: &Database, my_id: i32) -> Result<Self>
[src]
fn get(db: &Database, query: &Self::ID) -> Result<Self>
[src]
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
[src]
fn filter_with_param(
_db: &Database,
_filter: &Filter,
_param: &str
) -> Result<Vec<Self>>
[src]
_db: &Database,
_filter: &Filter,
_param: &str
) -> Result<Vec<Self>>
fn get_id(db: &Database, query: &Self::ID) -> Result<i32>
[src]
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>
[src]
fn blob(&self) -> Option<&str>
[src]
impl Scopable for Port
[src]
fn scoped(&self) -> bool
[src]
fn scope(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn noscope(db: &Database, filter: &Filter) -> Result<usize>
[src]
impl InsertableStruct<Port> for NewPort
[src]
fn value(&self) -> &str
[src]
fn set_scoped(&mut self, scoped: bool)
[src]
fn insert(&self, db: &Database) -> Result<()>
[src]
impl Upsertable<Port> for NewPort
[src]
type Update = PortUpdate
fn upsert(self, existing: &Port) -> Self::Update
[src]
fn upsert_opt<T: PartialEq>(
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
[src]
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
impl Updateable<Port> for PortUpdate
[src]
fn changeset(&mut self, existing: &Port)
[src]
fn fmt(&self, updates: &mut Vec<String>)
[src]
fn to_string(&self) -> String
[src]
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)
[src]
fn clear_if_lower_or_equal<T: PartialOrd>(
update: &mut Option<T>,
existing: &Option<T>
)
[src]
update: &mut Option<T>,
existing: &Option<T>
)
fn clear_if_greater_or_equal<T: PartialOrd>(
update: &mut Option<T>,
existing: &Option<T>
)
[src]
update: &mut Option<T>,
existing: &Option<T>
)
fn push_value<D: Debug>(
updates: &mut Vec<String>,
name: &str,
value: &Option<D>
)
[src]
updates: &mut Vec<String>,
name: &str,
value: &Option<D>
)
fn push_raw<T: AsRef<str>>(
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
[src]
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
impl Printable<PrintablePort> for Port
[src]
fn printable(&self, _db: &Database) -> Result<PrintablePort>
[src]
impl Detailed for Port
[src]
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]
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a IpAddr: Identifiable<Id = &'__a __FK>,
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
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
impl HasTable for Port
[src]
impl<'ident> Identifiable for &'ident Port
[src]
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]
(i32, i32, String, String, i32, String, String, bool, Option<String>, Option<String>, Option<String>): Queryable<__ST, __DB>,
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
fn build(row: Self::Row) -> Self
[src]
impl Serialize for Port
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Port
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Child where
Child: BelongingToDsl<&'a [Parent]>,
[src]
Child: BelongingToDsl<&'a [Parent]>,
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
fn belonging_to(
parents: &'a Vec<Parent>
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
[src]
parents: &'a Vec<Parent>
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
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]
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,
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
fn belonging_to(
parent: &'a Parent
) -> <Child as BelongingToDsl<&'a Parent>>::Output
[src]
parent: &'a Parent
) -> <Child as BelongingToDsl<&'a Parent>>::Output
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]
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,
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
fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
[src]
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> 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>,
T: Parameter<Self>,