[][src]Struct df_st_db::Creature

pub struct Creature {
    pub id: i32,
    pub world_id: i32,
    pub creature_id: Option<String>,
    pub name_singular: Option<String>,
    pub name_plural: Option<String>,
}

Fields

id: i32world_id: i32creature_id: Option<String>name_singular: Option<String>name_plural: Option<String>

Implementations

impl Creature[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<creature_id, &'update String>>, Option<Eq<name_singular, &'update String>>, Option<Eq<name_plural, &'update String>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Creature[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<creature_id, String>>, Option<Eq<name_singular, String>>, Option<Eq<name_plural, String>>) 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<__FK> BelongsTo<Creature> for CreatureBiome1 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<__FK> BelongsTo<Creature> for CreatureBiome2 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<__FK> BelongsTo<Creature> for CreatureHH1 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<__FK> BelongsTo<Creature> for CreatureHH2 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<__FK> BelongsTo<Creature> for CreatureLZ 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 Creature[src]

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

impl Debug for Creature[src]

impl Default for Creature[src]

impl Fillable for Creature[src]

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

From Core to DB

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

From DB to Core

impl HasTable for Creature[src]

type Table = table

The table this type is associated with.

impl Hash for Creature[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<creature_id, String>>, Option<Eq<name_singular, String>>, Option<Eq<name_plural, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<creature_id, &'insert String>>, Option<Eq<name_singular, &'insert String>>, Option<Eq<name_plural, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Creature> for Creature[src]

impl PartialEq<Creature> for Creature[src]

impl PartialEq<Creature> for Creature[src]

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

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

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

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

Auto Trait Implementations

impl RefUnwindSafe for Creature

impl Send for Creature

impl Sync for Creature

impl Unpin for Creature

impl UnwindSafe for Creature

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