[][src]Struct sn0int::models::Device

pub struct Device {
    pub id: i32,
    pub value: String,
    pub name: Option<String>,
    pub hostname: Option<String>,
    pub vendor: Option<String>,
    pub unscoped: bool,
    pub last_seen: Option<NaiveDateTime>,
}

Fields

id: i32value: Stringname: Option<String>hostname: Option<String>vendor: Option<String>unscoped: boollast_seen: Option<NaiveDateTime>

Trait Implementations

impl Model for Device[src]

type ID = str

impl Scopable for Device[src]

impl InsertableStruct<Device> for NewDevice[src]

impl Upsertable<Device> for NewDevice[src]

type Update = DeviceUpdate

impl Updateable<Device> for DeviceUpdate[src]

impl Printable<PrintableDevice> for Device[src]

impl Detailed for Device[src]

type T = DetailedDevice

impl PartialEq<Device> for Device[src]

impl Debug for Device[src]

impl StructuralPartialEq for Device[src]

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

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = device_id

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

impl HasTable for Device[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

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

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

impl Serialize for Device[src]

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

Auto Trait Implementations

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

impl RefUnwindSafe for Device

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