[−][src]Struct sn0int::models::Network
Fields
id: i32
value: String
unscoped: bool
latitude: Option<f32>
longitude: Option<f32>
Trait Implementations
impl Model for Network
[src]
impl Model for Network
type ID = str
fn to_string(&self) -> String | [src] |
fn list(db: &Database) -> Result<Vec<Self>> | [src] |
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>> | [src] |
fn delete(db: &Database, filter: &Filter) -> Result<usize> | [src] |
fn id(&self) -> i32 | [src] |
fn value(&self) -> &Self::ID | [src] |
fn by_id(db: &Database, my_id: i32) -> Result<Self> | [src] |
fn get(db: &Database, query: &Self::ID) -> Result<Self> | [src] |
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>> | [src] |
fn get_id(db: &Database, query: &Self::ID) -> Result<i32> | [src] |
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>> | [src] |
impl Scopable for Network
[src]
impl Scopable for Network
fn scoped(&self) -> bool | [src] |
fn scope(db: &Database, filter: &Filter) -> Result<usize> | [src] |
fn noscope(db: &Database, filter: &Filter) -> Result<usize> | [src] |
impl<'a> InsertableStruct<Network> for NewNetwork<'a>
[src]
impl<'a> InsertableStruct<Network> for NewNetwork<'a>
impl<'a> Upsertable<Network> for NewNetwork<'a>
[src]
impl<'a> Upsertable<Network> for NewNetwork<'a>
type Update = NetworkUpdate
fn upsert(self, existing: &Network) -> Self::Update | [src] |
fn upsert_str( | [src] |
fn upsert_bytes( | [src] |
fn upsert_opt<T: PartialEq>( | [src] |
impl Updateable<Network> for NetworkUpdate
[src]
impl Updateable<Network> for NetworkUpdate
fn changeset(&mut self, existing: &Network) | [src] |
fn fmt(&self, updates: &mut Vec<String>) | [src] |
fn to_string(&self) -> String | [src] |
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>) | [src] |
fn push_value<D: Debug>( | [src] |
fn push_raw<T: AsRef<str>>( | [src] |
impl Printable<PrintableNetwork> for Network
[src]
impl Printable<PrintableNetwork> for Network
fn printable(&self, _db: &Database) -> Result<PrintableNetwork> | [src] |
impl Detailed for Network
[src]
impl Detailed for Network
impl PartialEq<Network> for Network
[src]
impl PartialEq<Network> for Network
impl Debug for Network
[src]
impl Debug for Network
impl BelongsTo<Network> for NetworkDevice
[src]
impl BelongsTo<Network> for NetworkDevice
type ForeignKey = i32
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
fn foreign_key(&self) -> Option<&Self::ForeignKey> | [src] |
fn foreign_key_column() -> Self::ForeignKeyColumn | [src] |
impl HasTable for Network
[src]
impl HasTable for Network
impl<'ident> Identifiable for &'ident Network
[src]
impl<'ident> Identifiable for &'ident Network
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Network where
(i32, String, bool, Option<f32>, Option<f32>): Queryable<__ST, __DB>,
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Network where
(i32, String, bool, Option<f32>, Option<f32>): Queryable<__ST, __DB>,
type Row = <(i32, String, bool, Option<f32>, Option<f32>) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self | [src] |
impl Serialize for Network
[src]
impl Serialize for Network
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for Network
[src]
impl<'de> Deserialize<'de> for Network
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where | [src] |
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where | [src] |
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T