[][src]Struct df_st_db::CreatureAG

pub struct CreatureAG {
    pub cr_id: i32,
    pub world_id: i32,
    pub all_castes_alive: Option<bool>,
    pub artificial_hiveable: Option<bool>,
    pub does_not_exist: Option<bool>,
    pub equipment: Option<bool>,
    pub equipment_wagon: Option<bool>,
    pub evil: Option<bool>,
    pub fanciful: Option<bool>,
    pub generated: Option<bool>,
    pub good: Option<bool>,
}

Fields

cr_id: i32world_id: i32all_castes_alive: Option<bool>artificial_hiveable: Option<bool>does_not_exist: Option<bool>equipment: Option<bool>equipment_wagon: Option<bool>evil: Option<bool>fanciful: Option<bool>generated: Option<bool>good: Option<bool>

Implementations

impl CreatureAG[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<all_castes_alive, &'update bool>>, Option<Eq<artificial_hiveable, &'update bool>>, Option<Eq<does_not_exist, &'update bool>>, Option<Eq<equipment, &'update bool>>, Option<Eq<equipment_wagon, &'update bool>>, Option<Eq<evil, &'update bool>>, Option<Eq<fanciful, &'update bool>>, Option<Eq<generated, &'update bool>>, Option<Eq<good, &'update bool>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for CreatureAG[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<all_castes_alive, bool>>, Option<Eq<artificial_hiveable, bool>>, Option<Eq<does_not_exist, bool>>, Option<Eq<equipment, bool>>, Option<Eq<equipment_wagon, bool>>, Option<Eq<evil, bool>>, Option<Eq<fanciful, bool>>, Option<Eq<generated, bool>>, Option<Eq<good, bool>>) as AsChangeset>::Changeset

The update statement this type represents

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

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = cr_id

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

impl Clone for CreatureAG[src]

impl DBObject<Creature, CreatureAG> for CreatureAG[src]

fn find_db_list(
    _conn: &DbConnection,
    _id_filter: HashMap<String, i32>,
    _string_filter: HashMap<String, String>,
    _offset: i64,
    _limit: i64,
    _order: Option<OrderTypes>,
    _order_by: Option<String>,
    _id_list: Option<Vec<i32>>
) -> Result<Vec<CreatureAG>, Error>
[src]

Get a list of CreatureAG from the database

impl Debug for CreatureAG[src]

impl Default for CreatureAG[src]

impl Fillable for CreatureAG[src]

impl Filler<Creature, CreatureAG> for Creature[src]

From DB to Core

impl Filler<CreatureAG, Creature> for CreatureAG[src]

From Core to DB

impl HasTable for CreatureAG[src]

type Table = table

The table this type is associated with.

impl Hash for CreatureAG[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<cr_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<all_castes_alive, bool>>, Option<Eq<artificial_hiveable, bool>>, Option<Eq<does_not_exist, bool>>, Option<Eq<equipment, bool>>, Option<Eq<equipment_wagon, bool>>, Option<Eq<evil, bool>>, Option<Eq<fanciful, bool>>, Option<Eq<generated, bool>>, Option<Eq<good, bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<cr_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<all_castes_alive, &'insert bool>>, Option<Eq<artificial_hiveable, &'insert bool>>, Option<Eq<does_not_exist, &'insert bool>>, Option<Eq<equipment, &'insert bool>>, Option<Eq<equipment_wagon, &'insert bool>>, Option<Eq<evil, &'insert bool>>, Option<Eq<fanciful, &'insert bool>>, Option<Eq<generated, &'insert bool>>, Option<Eq<good, &'insert bool>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Creature> for CreatureAG[src]

impl PartialEq<CreatureAG> for CreatureAG[src]

impl PartialEq<CreatureAG> for Creature[src]

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

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

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

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

Auto Trait Implementations

impl RefUnwindSafe for CreatureAG

impl Send for CreatureAG

impl Sync for CreatureAG

impl Unpin for CreatureAG

impl UnwindSafe for CreatureAG

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>: 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> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods, 

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

The query returned by belonging_to

impl<'a, Parent, Child> BelongingToDsl<&'a Parent> for Child where
    Child: HasTable + BelongsTo<Parent>,
    &'a Parent: Identifiable,
    <&'a Parent as Identifiable>::Id: AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
    <Child as HasTable>::Table: FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>,
    <Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods, 

type Output = <<Child as HasTable>::Table as FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>>::Output

The query returned by belonging_to

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

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

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