[][src]Struct sn0int::models::NewDevice

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: Stringname: Option<String>hostname: Option<String>vendor: Option<String>last_seen: Option<NaiveDateTime>unscoped: bool

Trait Implementations

impl Clone for NewDevice[src]

impl Debug for NewDevice[src]

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

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

type Values = <(Option<Eq<value, String>>, Option<Eq<name, String>>, Option<Eq<hostname, String>>, Option<Eq<vendor, String>>, Option<Eq<last_seen, NaiveDateTime>>, Option<Eq<unscoped, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<value, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<hostname, &'insert String>>, Option<Eq<vendor, &'insert String>>, Option<Eq<last_seen, &'insert NaiveDateTime>>, Option<Eq<unscoped, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl InsertableStruct<Device> for NewDevice[src]

impl Printable<PrintableDevice> for NewDevice[src]

impl Serialize for NewDevice[src]

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

impl Upsertable<Device> for NewDevice[src]

type Update = DeviceUpdate

Auto Trait Implementations

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>,