Struct sn0int::models::NewNetworkDevice
source · [−]pub struct NewNetworkDevice {
pub network_id: i32,
pub device_id: i32,
pub ipaddr: Option<String>,
pub last_seen: Option<NaiveDateTime>,
}
Fields
network_id: i32
device_id: i32
ipaddr: Option<String>
last_seen: Option<NaiveDateTime>
Trait Implementations
sourceimpl Clone for NewNetworkDevice
impl Clone for NewNetworkDevice
sourcefn clone(&self) -> NewNetworkDevice
fn clone(&self) -> NewNetworkDevice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NewNetworkDevice
impl Debug for NewNetworkDevice
sourceimpl<'de> Deserialize<'de> for NewNetworkDevice
impl<'de> Deserialize<'de> for NewNetworkDevice
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'insert> Insertable<table> for NewNetworkDevice
impl<'insert> Insertable<table> for NewNetworkDevice
type Values = <(Option<Eq<network_id, i32>>, Option<Eq<device_id, i32>>, Option<Eq<ipaddr, String>>, Option<Eq<last_seen, NaiveDateTime>>) as Insertable<table>>::Values
type Values = <(Option<Eq<network_id, i32>>, Option<Eq<device_id, i32>>, Option<Eq<ipaddr, String>>, Option<Eq<last_seen, NaiveDateTime>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
sourcefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
sourceimpl<'insert> Insertable<table> for &'insert NewNetworkDevice
impl<'insert> Insertable<table> for &'insert NewNetworkDevice
type Values = <(Option<Eq<network_id, &'insert i32>>, Option<Eq<device_id, &'insert i32>>, Option<Eq<ipaddr, &'insert String>>, Option<Eq<last_seen, &'insert NaiveDateTime>>) as Insertable<table>>::Values
type Values = <(Option<Eq<network_id, &'insert i32>>, Option<Eq<device_id, &'insert i32>>, Option<Eq<ipaddr, &'insert String>>, Option<Eq<last_seen, &'insert NaiveDateTime>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
sourcefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
sourceimpl Printable<PrintableNetworkDevice> for NewNetworkDevice
impl Printable<PrintableNetworkDevice> for NewNetworkDevice
fn printable(&self, db: &Database) -> Result<PrintableNetworkDevice>
sourceimpl Serialize for NewNetworkDevice
impl Serialize for NewNetworkDevice
sourceimpl Upsertable<NetworkDevice> for NewNetworkDevice
impl Upsertable<NetworkDevice> for NewNetworkDevice
type Update = NetworkDeviceUpdate
fn upsert(self, existing: &NetworkDevice) -> Self::Update
fn upsert_opt<T: PartialEq>(
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
impl<'insert> UndecoratedInsertRecord<table> for NewNetworkDevice
Auto Trait Implementations
impl RefUnwindSafe for NewNetworkDevice
impl Send for NewNetworkDevice
impl Sync for NewNetworkDevice
impl Unpin for NewNetworkDevice
impl UnwindSafe for NewNetworkDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
sourceimpl<T> LuaInsertToNew for T where
T: InsertToNew,
impl<T> LuaInsertToNew for T where
T: InsertToNew,
type Target = <T as InsertToNew>::Target
fn lua_try_into_new(
self,
_state: &Arc<dyn State + 'static>
) -> Result<<T as LuaInsertToNew>::Target, Error>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more