[][src]Struct df_st_db::Structure

pub struct Structure {
    pub site_id: i32,
    pub local_id: i32,
    pub world_id: i32,
    pub type_: Option<String>,
    pub subtype: Option<String>,
    pub name: Option<String>,
    pub name2: Option<String>,
    pub entity_id: Option<i32>,
    pub worship_hf_id: Option<i32>,
    pub deity_type: Option<i32>,
    pub deity_id: Option<i32>,
    pub religion_id: Option<i32>,
    pub dungeon_type: Option<i32>,
}

Fields

site_id: i32local_id: i32world_id: i32type_: Option<String>subtype: Option<String>name: Option<String>name2: Option<String>entity_id: Option<i32>worship_hf_id: Option<i32>deity_type: Option<i32>deity_id: Option<i32>religion_id: Option<i32>dungeon_type: Option<i32>

Implementations

impl Structure[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'update> AsChangeset for &'update Structure[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<type_, &'update String>>, Option<Eq<subtype, &'update String>>, Option<Eq<name, &'update String>>, Option<Eq<name2, &'update String>>, Option<Eq<entity_id, &'update i32>>, Option<Eq<worship_hf_id, &'update i32>>, Option<Eq<deity_type, &'update i32>>, Option<Eq<deity_id, &'update i32>>, Option<Eq<religion_id, &'update i32>>, Option<Eq<dungeon_type, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Structure[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<type_, String>>, Option<Eq<subtype, String>>, Option<Eq<name, String>>, Option<Eq<name2, String>>, Option<Eq<entity_id, i32>>, Option<Eq<worship_hf_id, i32>>, Option<Eq<deity_type, i32>>, Option<Eq<deity_id, i32>>, Option<Eq<religion_id, i32>>, Option<Eq<dungeon_type, i32>>) as AsChangeset>::Changeset

The update statement this type represents

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

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = site_id

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

impl Clone for Structure[src]

impl DBObject<Structure, Structure> for Structure[src]

impl Debug for Structure[src]

impl Default for Structure[src]

impl Fillable for Structure[src]

impl Filler<Structure, Structure> for Structure[src]

From Core to DB

impl Filler<Structure, Structure> for Structure[src]

From DB to Core

impl HasTable for Structure[src]

type Table = table

The table this type is associated with.

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

type Id = (&'ident i32, &'ident i32)

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<site_id, i32>>, Option<Eq<local_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<type_, String>>, Option<Eq<subtype, String>>, Option<Eq<name, String>>, Option<Eq<name2, String>>, Option<Eq<entity_id, i32>>, Option<Eq<worship_hf_id, i32>>, Option<Eq<deity_type, i32>>, Option<Eq<deity_id, i32>>, Option<Eq<religion_id, i32>>, Option<Eq<dungeon_type, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<site_id, &'insert i32>>, Option<Eq<local_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<type_, &'insert String>>, Option<Eq<subtype, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<name2, &'insert String>>, Option<Eq<entity_id, &'insert i32>>, Option<Eq<worship_hf_id, &'insert i32>>, Option<Eq<deity_type, &'insert i32>>, Option<Eq<deity_id, &'insert i32>>, Option<Eq<religion_id, &'insert i32>>, Option<Eq<dungeon_type, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Structure> for Structure[src]

impl PartialEq<Structure> for Structure[src]

impl PartialEq<Structure> for Structure[src]

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

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

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

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where
    Child: HasTable + BelongsTo<Parent>,
    &'a Parent: Identifiable,
    Vec<<&'a Parent as Identifiable>::Id, Global>: AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
    <Child as HasTable>::Table: FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods
[src]

type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output

The query returned by belonging_to

impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
    Child: BelongingToDsl<&'a [Parent]>, 
[src]

type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output

The query returned by belonging_to

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[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> 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>,