[−][src]Struct df_st_db::CreatureBiome1
Fields
cr_id: i32
world_id: i32
desert_badland: Option<bool>
desert_rock: Option<bool>
desert_sand: Option<bool>
forest_taiga: Option<bool>
forest_temperate_broadleaf: Option<bool>
forest_temperate_conifer: Option<bool>
forest_tropical_conifer: Option<bool>
forest_tropical_dry_broadleaf: Option<bool>
forest_tropical_moist_broadleaf: Option<bool>
glacier: Option<bool>
grassland_temperate: Option<bool>
grassland_tropical: Option<bool>
lake_temperate_brackishwater: Option<bool>
lake_temperate_freshwater: Option<bool>
lake_temperate_saltwater: Option<bool>
lake_tropical_brackishwater: Option<bool>
lake_tropical_freshwater: Option<bool>
lake_tropical_saltwater: Option<bool>
marsh_temperate_freshwater: Option<bool>
marsh_temperate_saltwater: Option<bool>
marsh_tropical_freshwater: Option<bool>
marsh_tropical_saltwater: Option<bool>
mountain: Option<bool>
Implementations
impl CreatureBiome1
[src]
Trait Implementations
impl<'update> AsChangeset for &'update CreatureBiome1
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<desert_badland, &'update bool>>, Option<Eq<desert_rock, &'update bool>>, Option<Eq<desert_sand, &'update bool>>, Option<Eq<forest_taiga, &'update bool>>, Option<Eq<forest_temperate_broadleaf, &'update bool>>, Option<Eq<forest_temperate_conifer, &'update bool>>, Option<Eq<forest_tropical_conifer, &'update bool>>, Option<Eq<forest_tropical_dry_broadleaf, &'update bool>>, Option<Eq<forest_tropical_moist_broadleaf, &'update bool>>, Option<Eq<glacier, &'update bool>>, Option<Eq<grassland_temperate, &'update bool>>, Option<Eq<grassland_tropical, &'update bool>>, Option<Eq<lake_temperate_brackishwater, &'update bool>>, Option<Eq<lake_temperate_freshwater, &'update bool>>, Option<Eq<lake_temperate_saltwater, &'update bool>>, Option<Eq<lake_tropical_brackishwater, &'update bool>>, Option<Eq<lake_tropical_freshwater, &'update bool>>, Option<Eq<lake_tropical_saltwater, &'update bool>>, Option<Eq<marsh_temperate_freshwater, &'update bool>>, Option<Eq<marsh_temperate_saltwater, &'update bool>>, Option<Eq<marsh_tropical_freshwater, &'update bool>>, Option<Eq<marsh_tropical_saltwater, &'update bool>>, Option<Eq<mountain, &'update bool>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'update> AsChangeset for CreatureBiome1
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<world_id, i32>, Option<Eq<desert_badland, bool>>, Option<Eq<desert_rock, bool>>, Option<Eq<desert_sand, bool>>, Option<Eq<forest_taiga, bool>>, Option<Eq<forest_temperate_broadleaf, bool>>, Option<Eq<forest_temperate_conifer, bool>>, Option<Eq<forest_tropical_conifer, bool>>, Option<Eq<forest_tropical_dry_broadleaf, bool>>, Option<Eq<forest_tropical_moist_broadleaf, bool>>, Option<Eq<glacier, bool>>, Option<Eq<grassland_temperate, bool>>, Option<Eq<grassland_tropical, bool>>, Option<Eq<lake_temperate_brackishwater, bool>>, Option<Eq<lake_temperate_freshwater, bool>>, Option<Eq<lake_temperate_saltwater, bool>>, Option<Eq<lake_tropical_brackishwater, bool>>, Option<Eq<lake_tropical_freshwater, bool>>, Option<Eq<lake_tropical_saltwater, bool>>, Option<Eq<marsh_temperate_freshwater, bool>>, Option<Eq<marsh_temperate_saltwater, bool>>, Option<Eq<marsh_tropical_freshwater, bool>>, Option<Eq<marsh_tropical_saltwater, bool>>, Option<Eq<mountain, bool>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<__FK> BelongsTo<Creature> for CreatureBiome1 where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Creature: Identifiable<Id = &'__a __FK>,
[src]
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Creature: Identifiable<Id = &'__a __FK>,
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
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
impl Clone for CreatureBiome1
[src]
fn clone(&self) -> CreatureBiome1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl DBObject<CreatureBiome, CreatureBiome1> for CreatureBiome1
[src]
fn add_missing_data_advanced(_core_world: &DFWorld, _world: &mut DBDFWorld)
[src]
fn insert_into_db(conn: &DbConnection, creature_biomes_1: &[CreatureBiome1])
[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<CreatureBiome1>, Error>
[src]
_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<CreatureBiome1>, Error>
Get a list of CreatureBiome1 from the database
fn find_db_item(
conn: &DbConnection,
id_filter: HashMap<String, i32>
) -> Result<Option<CreatureBiome1>, Error>
[src]
conn: &DbConnection,
id_filter: HashMap<String, i32>
) -> Result<Option<CreatureBiome1>, Error>
fn match_field_by(field: String) -> String
[src]
fn add_nested_items(
_conn: &DbConnection,
_db_list: &[CreatureBiome1],
core_list: Vec<CreatureBiome>
) -> Result<Vec<CreatureBiome>, Error>
[src]
_conn: &DbConnection,
_db_list: &[CreatureBiome1],
core_list: Vec<CreatureBiome>
) -> Result<Vec<CreatureBiome>, Error>
fn get_count_from_db(
_conn: &DbConnection,
_id_filter: HashMap<String, i32>,
_string_filter: HashMap<String, String>,
_offset: u32,
_limit: u32,
_group_by_opt: Option<String>,
_id_list: Option<Vec<i32>>
) -> Result<Vec<ItemCount>, Error>
[src]
_conn: &DbConnection,
_id_filter: HashMap<String, i32>,
_string_filter: HashMap<String, String>,
_offset: u32,
_limit: u32,
_group_by_opt: Option<String>,
_id_list: Option<Vec<i32>>
) -> Result<Vec<ItemCount>, Error>
fn get_order(
order: Option<OrderTypes>,
order_by: Option<String>
) -> (String, bool)
[src]
order: Option<OrderTypes>,
order_by: Option<String>
) -> (String, bool)
fn match_field_by_opt(field: Option<String>) -> Option<String>
[src]
fn insert_into_db_chunked(conn: &DbConnection, db_list: &[D])
[src]
fn insert_into_db_chunked_indexmap(
conn: &DbConnection,
db_list: &IndexMap<u64, D>
)
[src]
conn: &DbConnection,
db_list: &IndexMap<u64, D>
)
fn indexmap_chunks(
indexmap: &IndexMap<u64, D>,
chunk_size: usize,
offset: usize
) -> Vec<D>
[src]
indexmap: &IndexMap<u64, D>,
chunk_size: usize,
offset: usize
) -> Vec<D>
fn get_list_from_db(
conn: &DbConnection,
id_filter: HashMap<String, i32>,
string_filter: HashMap<String, String>,
offset: u32,
limit: u32,
order: Option<OrderTypes>,
order_by: Option<String>,
id_list: Option<Vec<i32>>,
add_nested_items: bool
) -> Result<Vec<C>, Error>
[src]
conn: &DbConnection,
id_filter: HashMap<String, i32>,
string_filter: HashMap<String, String>,
offset: u32,
limit: u32,
order: Option<OrderTypes>,
order_by: Option<String>,
id_list: Option<Vec<i32>>,
add_nested_items: bool
) -> Result<Vec<C>, Error>
fn get_from_db(
conn: &DbConnection,
id_filter: HashMap<String, i32>,
add_nested_items: bool
) -> Result<Option<C>, Error>
[src]
conn: &DbConnection,
id_filter: HashMap<String, i32>,
add_nested_items: bool
) -> Result<Option<C>, Error>
impl Debug for CreatureBiome1
[src]
impl Default for CreatureBiome1
[src]
fn default() -> CreatureBiome1
[src]
impl Fillable for CreatureBiome1
[src]
impl Filler<CreatureBiome, CreatureBiome1> for CreatureBiome
[src]
From DB to Core
fn add_missing_data(&mut self, source: &CreatureBiome1)
[src]
fn add_missing_data_indexed(&mut self, source: &S, _index: u64)
[src]
fn never_replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
fn replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
fn check_mergeable(&self, source: &S) -> bool where
S: PartialEq<Self> + Debug,
Self: Debug + Default + PartialEq<Self>,
[src]
S: PartialEq<Self> + Debug,
Self: Debug + Default + PartialEq<Self>,
impl Filler<CreatureBiome1, CreatureBiome> for CreatureBiome1
[src]
From Core to DB
fn add_missing_data(&mut self, source: &CreatureBiome)
[src]
fn add_missing_data_indexed(&mut self, source: &S, _index: u64)
[src]
fn never_replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
fn replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
fn check_mergeable(&self, source: &S) -> bool where
S: PartialEq<Self> + Debug,
Self: Debug + Default + PartialEq<Self>,
[src]
S: PartialEq<Self> + Debug,
Self: Debug + Default + PartialEq<Self>,
impl HasTable for CreatureBiome1
[src]
impl Hash for CreatureBiome1
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'ident> Identifiable for &'ident CreatureBiome1
[src]
impl<'insert> Insertable<table> for CreatureBiome1
[src]
type Values = <(Option<Eq<cr_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<desert_badland, bool>>, Option<Eq<desert_rock, bool>>, Option<Eq<desert_sand, bool>>, Option<Eq<forest_taiga, bool>>, Option<Eq<forest_temperate_broadleaf, bool>>, Option<Eq<forest_temperate_conifer, bool>>, Option<Eq<forest_tropical_conifer, bool>>, Option<Eq<forest_tropical_dry_broadleaf, bool>>, Option<Eq<forest_tropical_moist_broadleaf, bool>>, Option<Eq<glacier, bool>>, Option<Eq<grassland_temperate, bool>>, Option<Eq<grassland_tropical, bool>>, Option<Eq<lake_temperate_brackishwater, bool>>, Option<Eq<lake_temperate_freshwater, bool>>, Option<Eq<lake_temperate_saltwater, bool>>, Option<Eq<lake_tropical_brackishwater, bool>>, Option<Eq<lake_tropical_freshwater, bool>>, Option<Eq<lake_tropical_saltwater, bool>>, Option<Eq<marsh_temperate_freshwater, bool>>, Option<Eq<marsh_temperate_saltwater, bool>>, Option<Eq<marsh_tropical_freshwater, bool>>, Option<Eq<marsh_tropical_saltwater, bool>>, Option<Eq<mountain, bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'insert> Insertable<table> for &'insert CreatureBiome1
[src]
type Values = <(Option<Eq<cr_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<desert_badland, &'insert bool>>, Option<Eq<desert_rock, &'insert bool>>, Option<Eq<desert_sand, &'insert bool>>, Option<Eq<forest_taiga, &'insert bool>>, Option<Eq<forest_temperate_broadleaf, &'insert bool>>, Option<Eq<forest_temperate_conifer, &'insert bool>>, Option<Eq<forest_tropical_conifer, &'insert bool>>, Option<Eq<forest_tropical_dry_broadleaf, &'insert bool>>, Option<Eq<forest_tropical_moist_broadleaf, &'insert bool>>, Option<Eq<glacier, &'insert bool>>, Option<Eq<grassland_temperate, &'insert bool>>, Option<Eq<grassland_tropical, &'insert bool>>, Option<Eq<lake_temperate_brackishwater, &'insert bool>>, Option<Eq<lake_temperate_freshwater, &'insert bool>>, Option<Eq<lake_temperate_saltwater, &'insert bool>>, Option<Eq<lake_tropical_brackishwater, &'insert bool>>, Option<Eq<lake_tropical_freshwater, &'insert bool>>, Option<Eq<lake_tropical_saltwater, &'insert bool>>, Option<Eq<marsh_temperate_freshwater, &'insert bool>>, Option<Eq<marsh_temperate_saltwater, &'insert bool>>, Option<Eq<marsh_tropical_freshwater, &'insert bool>>, Option<Eq<marsh_tropical_saltwater, &'insert bool>>, Option<Eq<mountain, &'insert bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl PartialEq<CreatureBiome> for CreatureBiome1
[src]
fn eq(&self, other: &CreatureBiome) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<CreatureBiome1> for CreatureBiome1
[src]
impl PartialEq<CreatureBiome1> for CreatureBiome
[src]
fn eq(&self, other: &CreatureBiome1) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for CreatureBiome1 where
(i32, i32, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>): Queryable<__ST, __DB>,
[src]
(i32, i32, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>): Queryable<__ST, __DB>,
type Row = <(i32, i32, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, 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
fn build(row: Self::Row) -> Self
[src]
impl<'insert> UndecoratedInsertRecord<table> for CreatureBiome1
[src]
Auto Trait Implementations
impl RefUnwindSafe for CreatureBiome1
impl Send for CreatureBiome1
impl Sync for CreatureBiome1
impl Unpin for CreatureBiome1
impl UnwindSafe for CreatureBiome1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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,
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
fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
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,
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
fn belonging_to(
parent: &'a Parent
) -> <Child as BelongingToDsl<&'a Parent>>::Output
parent: &'a Parent
) -> <Child as BelongingToDsl<&'a Parent>>::Output
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Child where
Child: BelongingToDsl<&'a [Parent]>,
Child: BelongingToDsl<&'a [Parent]>,
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
fn belonging_to(
parents: &'a Vec<Parent>
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
parents: &'a Vec<Parent>
) -> <Child as BelongingToDsl<&'a Vec<Parent>>>::Output
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,