[−][src]Struct df_st_db::HistoricalEventQR
Fields
he_id: i32
world_id: i32
quality: Option<i32>
rampage_civ_id: Option<i32>
ransomed_hf_id: Option<i32>
ransomer_hf_id: Option<i32>
reason: Option<i32>
reason_id: Option<i32>
rebuilt_ruined: Option<bool>
receiver_entity_id: Option<i32>
receiver_hf_id: Option<i32>
relationship: Option<String>
relevant_entity_id: Option<i32>
relevant_id_for_method: Option<i32>
relevant_position_profile_id: Option<i32>
religion_id: Option<i32>
resident_civ_id: Option<i32>
result: Option<String>
return_: Option<bool>
race_id: Option<String>
rebuild: Option<bool>
region_id: Option<i32>
Implementations
impl HistoricalEventQR
[src]
Trait Implementations
impl<'update> AsChangeset for &'update HistoricalEventQR
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<quality, &'update i32>>, Option<Eq<rampage_civ_id, &'update i32>>, Option<Eq<ransomed_hf_id, &'update i32>>, Option<Eq<ransomer_hf_id, &'update i32>>, Option<Eq<reason, &'update i32>>, Option<Eq<reason_id, &'update i32>>, Option<Eq<rebuilt_ruined, &'update bool>>, Option<Eq<receiver_entity_id, &'update i32>>, Option<Eq<receiver_hf_id, &'update i32>>, Option<Eq<relationship, &'update String>>, Option<Eq<relevant_entity_id, &'update i32>>, Option<Eq<relevant_id_for_method, &'update i32>>, Option<Eq<relevant_position_profile_id, &'update i32>>, Option<Eq<religion_id, &'update i32>>, Option<Eq<resident_civ_id, &'update i32>>, Option<Eq<result, &'update String>>, Option<Eq<return_, &'update bool>>, Option<Eq<race_id, &'update String>>, Option<Eq<rebuild, &'update bool>>, Option<Eq<region_id, &'update i32>>) as AsChangeset>::Changeset
The update statement this type represents
pub fn as_changeset(self) -> Self::Changeset
[src]
impl<'update> AsChangeset for HistoricalEventQR
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<world_id, i32>, Option<Eq<quality, i32>>, Option<Eq<rampage_civ_id, i32>>, Option<Eq<ransomed_hf_id, i32>>, Option<Eq<ransomer_hf_id, i32>>, Option<Eq<reason, i32>>, Option<Eq<reason_id, i32>>, Option<Eq<rebuilt_ruined, bool>>, Option<Eq<receiver_entity_id, i32>>, Option<Eq<receiver_hf_id, i32>>, Option<Eq<relationship, String>>, Option<Eq<relevant_entity_id, i32>>, Option<Eq<relevant_id_for_method, i32>>, Option<Eq<relevant_position_profile_id, i32>>, Option<Eq<religion_id, i32>>, Option<Eq<resident_civ_id, i32>>, Option<Eq<result, String>>, Option<Eq<return_, bool>>, Option<Eq<race_id, String>>, Option<Eq<rebuild, bool>>, Option<Eq<region_id, i32>>) as AsChangeset>::Changeset
The update statement this type represents
pub fn as_changeset(self) -> Self::Changeset
[src]
impl<__FK> BelongsTo<HistoricalEvent> for HistoricalEventQR where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a HistoricalEvent: Identifiable<Id = &'__a __FK>,
[src]
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a HistoricalEvent: Identifiable<Id = &'__a __FK>,
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = he_id
The database column representing the foreign key of the table this struct represents Read more
pub fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
pub fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
impl Clone for HistoricalEventQR
[src]
pub fn clone(&self) -> HistoricalEventQR
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl DBObject<HistoricalEvent, HistoricalEventQR> for HistoricalEventQR
[src]
pub fn add_missing_data_advanced(_core_world: &DFWorld, _world: &mut DBDFWorld)
[src]
pub fn insert_into_db(
conn: &DbConnection,
historical_events_q_r: &[HistoricalEventQR]
)
[src]
conn: &DbConnection,
historical_events_q_r: &[HistoricalEventQR]
)
pub 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<HistoricalEventQR>, 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<HistoricalEventQR>, Error>
Get a list of HistoricalEventQR from the database
pub fn find_db_item(
conn: &DbConnection,
id_filter: HashMap<String, i32>
) -> Result<Option<HistoricalEventQR>, Error>
[src]
conn: &DbConnection,
id_filter: HashMap<String, i32>
) -> Result<Option<HistoricalEventQR>, Error>
pub fn match_field_by(_match_by: MatchBy) -> Vec<&'static str>
[src]
pub fn add_nested_items(
_conn: &DbConnection,
_db_list: &[HistoricalEventQR],
core_list: Vec<HistoricalEvent>
) -> Result<Vec<HistoricalEvent>, Error>
[src]
_conn: &DbConnection,
_db_list: &[HistoricalEventQR],
core_list: Vec<HistoricalEvent>
) -> Result<Vec<HistoricalEvent>, Error>
pub 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>
pub fn get_order(
order: Option<OrderTypes>,
order_by: Option<String>
) -> (String, bool)
[src]
order: Option<OrderTypes>,
order_by: Option<String>
) -> (String, bool)
pub fn match_field_by_opt(
field: Option<String>,
match_by: MatchBy
) -> Option<String>
[src]
field: Option<String>,
match_by: MatchBy
) -> Option<String>
pub fn insert_into_db_chunked(conn: &DbConnection, db_list: &[D])
[src]
pub fn insert_into_db_chunked_indexmap(
conn: &DbConnection,
db_list: &IndexMap<u64, D>
)
[src]
conn: &DbConnection,
db_list: &IndexMap<u64, D>
)
pub 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>
pub 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>
pub 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 HistoricalEventQR
[src]
impl Default for HistoricalEventQR
[src]
pub fn default() -> HistoricalEventQR
[src]
impl Fillable for HistoricalEventQR
[src]
impl Filler<HistoricalEvent, HistoricalEventQR> for HistoricalEvent
[src]
From DB to Core
pub fn add_missing_data(&mut self, source: &HistoricalEventQR)
[src]
pub fn add_missing_data_indexed(&mut self, source: &S, _index: u64)
[src]
pub fn never_replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
pub fn replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
pub fn check_mergeable(&self, source: &S) -> bool where
Self: Debug + Default + PartialEq<Self>,
S: PartialEq<Self> + Debug,
[src]
Self: Debug + Default + PartialEq<Self>,
S: PartialEq<Self> + Debug,
impl Filler<HistoricalEventQR, HistoricalEvent> for HistoricalEventQR
[src]
From Core to DB
pub fn add_missing_data(&mut self, source: &HistoricalEvent)
[src]
pub fn add_missing_data_indexed(&mut self, source: &S, _index: u64)
[src]
pub fn never_replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
pub fn replace_data(&mut self, source: &S) where
Self: Debug,
[src]
Self: Debug,
pub fn check_mergeable(&self, source: &S) -> bool where
Self: Debug + Default + PartialEq<Self>,
S: PartialEq<Self> + Debug,
[src]
Self: Debug + Default + PartialEq<Self>,
S: PartialEq<Self> + Debug,
impl HasTable for HistoricalEventQR
[src]
impl Hash for HistoricalEventQR
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'ident> Identifiable for &'ident HistoricalEventQR
[src]
type Id = &'ident i32
The type of this struct's identifier. Read more
pub fn id(self) -> Self::Id
[src]
impl<'insert> Insertable<table> for HistoricalEventQR
[src]
type Values = <(Option<Eq<he_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<quality, i32>>, Option<Eq<rampage_civ_id, i32>>, Option<Eq<ransomed_hf_id, i32>>, Option<Eq<ransomer_hf_id, i32>>, Option<Eq<reason, i32>>, Option<Eq<reason_id, i32>>, Option<Eq<rebuilt_ruined, bool>>, Option<Eq<receiver_entity_id, i32>>, Option<Eq<receiver_hf_id, i32>>, Option<Eq<relationship, String>>, Option<Eq<relevant_entity_id, i32>>, Option<Eq<relevant_id_for_method, i32>>, Option<Eq<relevant_position_profile_id, i32>>, Option<Eq<religion_id, i32>>, Option<Eq<resident_civ_id, i32>>, Option<Eq<result, String>>, Option<Eq<return_, bool>>, Option<Eq<race_id, String>>, Option<Eq<rebuild, bool>>, Option<Eq<region_id, i32>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'insert> Insertable<table> for &'insert HistoricalEventQR
[src]
type Values = <(Option<Eq<he_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<quality, &'insert i32>>, Option<Eq<rampage_civ_id, &'insert i32>>, Option<Eq<ransomed_hf_id, &'insert i32>>, Option<Eq<ransomer_hf_id, &'insert i32>>, Option<Eq<reason, &'insert i32>>, Option<Eq<reason_id, &'insert i32>>, Option<Eq<rebuilt_ruined, &'insert bool>>, Option<Eq<receiver_entity_id, &'insert i32>>, Option<Eq<receiver_hf_id, &'insert i32>>, Option<Eq<relationship, &'insert String>>, Option<Eq<relevant_entity_id, &'insert i32>>, Option<Eq<relevant_id_for_method, &'insert i32>>, Option<Eq<relevant_position_profile_id, &'insert i32>>, Option<Eq<religion_id, &'insert i32>>, Option<Eq<resident_civ_id, &'insert i32>>, Option<Eq<result, &'insert String>>, Option<Eq<return_, &'insert bool>>, Option<Eq<race_id, &'insert String>>, Option<Eq<rebuild, &'insert bool>>, Option<Eq<region_id, &'insert i32>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl PartialEq<HistoricalEvent> for HistoricalEventQR
[src]
pub fn eq(&self, other: &HistoricalEvent) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<HistoricalEventQR> for HistoricalEventQR
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<HistoricalEventQR> for HistoricalEvent
[src]
pub fn eq(&self, other: &HistoricalEventQR) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for HistoricalEventQR where
(i32, i32, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<String>, Option<bool>, Option<String>, Option<bool>, Option<i32>): Queryable<__ST, __DB>,
[src]
(i32, i32, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<String>, Option<bool>, Option<String>, Option<bool>, Option<i32>): Queryable<__ST, __DB>,
type Row = <(i32, i32, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<String>, Option<bool>, Option<String>, Option<bool>, Option<i32>) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
pub fn build(row: Self::Row) -> Self
[src]
impl<'insert> UndecoratedInsertRecord<table> for HistoricalEventQR
[src]
Auto Trait Implementations
impl RefUnwindSafe for HistoricalEventQR
[src]
impl Send for HistoricalEventQR
[src]
impl Sync for HistoricalEventQR
[src]
impl Unpin for HistoricalEventQR
[src]
impl UnwindSafe for HistoricalEventQR
[src]
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, 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]
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,
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
pub fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
[src]
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
Child: BelongingToDsl<&'a [Parent]>,
[src]
Child: BelongingToDsl<&'a [Parent]>,
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
pub fn belonging_to(
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::Output
[src]
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
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
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,