pub struct NewDevice {
pub value: String,
pub name: Option<String>,
pub hostname: Option<String>,
pub vendor: Option<String>,
pub last_seen: Option<NaiveDateTime>,
pub unscoped: bool,
}
Fields§
§value: String
§name: Option<String>
§hostname: Option<String>
§vendor: Option<String>
§last_seen: Option<NaiveDateTime>
§unscoped: bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for NewDevice
impl<'de> Deserialize<'de> for NewDevice
source§fn 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
source§impl<'insert> Insertable<table> for &'insert NewDevice
impl<'insert> Insertable<table> for &'insert NewDevice
§type Values = <(Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<hostname, <&'insert String as AsExpression<<hostname as Expression>::SqlType>>::Expression>>, Option<Eq<vendor, <&'insert String as AsExpression<<vendor as Expression>::SqlType>>::Expression>>, Option<Eq<last_seen, <&'insert NaiveDateTime as AsExpression<<last_seen as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<hostname, <&'insert String as AsExpression<<hostname as Expression>::SqlType>>::Expression>>, Option<Eq<vendor, <&'insert String as AsExpression<<vendor as Expression>::SqlType>>::Expression>>, Option<Eq<last_seen, <&'insert NaiveDateTime as AsExpression<<last_seen as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl<'insert> Insertable<table> for NewDevice
impl<'insert> Insertable<table> for NewDevice
§type Values = <(Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<hostname, <String as AsExpression<<hostname as Expression>::SqlType>>::Expression>>, Option<Eq<vendor, <String as AsExpression<<vendor as Expression>::SqlType>>::Expression>>, Option<Eq<last_seen, <NaiveDateTime as AsExpression<<last_seen as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<hostname, <String as AsExpression<<hostname as Expression>::SqlType>>::Expression>>, Option<Eq<vendor, <String as AsExpression<<vendor as Expression>::SqlType>>::Expression>>, Option<Eq<last_seen, <NaiveDateTime as AsExpression<<last_seen as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl InsertableStruct<Device> for NewDevice
impl InsertableStruct<Device> for NewDevice
source§impl Printable<PrintableDevice> for NewDevice
impl Printable<PrintableDevice> for NewDevice
source§impl Upsertable<Device> for NewDevice
impl Upsertable<Device> for NewDevice
impl<'insert> UndecoratedInsertRecord<table> for NewDevice
Auto Trait Implementations§
impl RefUnwindSafe for NewDevice
impl Send for NewDevice
impl Sync for NewDevice
impl Unpin for NewDevice
impl UnwindSafe for NewDevice
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more