[][src]Struct sn0int::models::Network

pub struct Network {
    pub id: i32,
    pub value: String,
    pub unscoped: bool,
    pub latitude: Option<f32>,
    pub longitude: Option<f32>,
    pub description: Option<String>,
}

Fields

id: i32value: Stringunscoped: boollatitude: Option<f32>longitude: Option<f32>description: Option<String>

Trait Implementations

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

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = network_id

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

impl Debug for Network[src]

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

impl Detailed for Network[src]

type T = DetailedNetwork

impl HasTable for Network[src]

type Table = table

The table this type is associated with.

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

type Id = &'ident i32

The type of this struct's identifier. Read more

impl InsertableStruct<Network> for NewNetwork[src]

impl Model for Network[src]

type ID = str

impl PartialEq<Network> for Network[src]

impl Printable<PrintableNetwork> for Network[src]

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

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

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

impl Scopable for Network[src]

impl Serialize for Network[src]

impl StructuralPartialEq for Network[src]

impl Updateable<Network> for NetworkUpdate[src]

impl Upsertable<Network> for NewNetwork[src]

type Update = NetworkUpdate

Auto Trait Implementations

impl RefUnwindSafe for Network

impl Send for Network

impl Sync for Network

impl Unpin for Network

impl UnwindSafe for Network

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