[][src]Struct df_st_db::HistoricalEventCC

pub struct HistoricalEventCC {
    pub he_id: i32,
    pub world_id: i32,
    pub cause: Option<String>,
    pub changee_hf_id: Option<i32>,
    pub changer_hf_id: Option<i32>,
    pub circumstance: Option<String>,
    pub circumstance_id: Option<i32>,
    pub civ_entity_id: Option<i32>,
    pub civ_id: Option<i32>,
    pub claim: Option<String>,
    pub coconspirator_bonus: Option<i32>,
    pub coconspirator_hf_id: Option<i32>,
    pub confessed_after_apb_arrest_en_id: Option<i32>,
    pub contact_hf_id: Option<i32>,
    pub contacted_en_id: Option<i32>,
    pub contactor_en_id: Option<i32>,
    pub convict_is_contact: Option<bool>,
    pub convicted_hf_id: Option<i32>,
    pub convicter_en_id: Option<i32>,
    pub coord: Option<String>,
    pub corrupt_convicter_hf_id: Option<i32>,
    pub corruptor_hf_id: Option<i32>,
    pub corruptor_identity: Option<i32>,
    pub corruptor_seen_as: Option<String>,
    pub creation_he_id: Option<i32>,
    pub creator_hf_id: Option<i32>,
    pub crime: Option<String>,
    pub caste: Option<String>,
    pub creator_unit_id: Option<i32>,
}

Fields

he_id: i32world_id: i32cause: Option<String>changee_hf_id: Option<i32>changer_hf_id: Option<i32>circumstance: Option<String>circumstance_id: Option<i32>civ_entity_id: Option<i32>civ_id: Option<i32>claim: Option<String>coconspirator_bonus: Option<i32>coconspirator_hf_id: Option<i32>confessed_after_apb_arrest_en_id: Option<i32>contact_hf_id: Option<i32>contacted_en_id: Option<i32>contactor_en_id: Option<i32>convict_is_contact: Option<bool>convicted_hf_id: Option<i32>convicter_en_id: Option<i32>coord: Option<String>corrupt_convicter_hf_id: Option<i32>corruptor_hf_id: Option<i32>corruptor_identity: Option<i32>corruptor_seen_as: Option<String>creation_he_id: Option<i32>creator_hf_id: Option<i32>crime: Option<String>caste: Option<String>creator_unit_id: Option<i32>

Implementations

impl HistoricalEventCC[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<cause, &'update String>>, Option<Eq<changee_hf_id, &'update i32>>, Option<Eq<changer_hf_id, &'update i32>>, Option<Eq<circumstance, &'update String>>, Option<Eq<circumstance_id, &'update i32>>, Option<Eq<civ_entity_id, &'update i32>>, Option<Eq<civ_id, &'update i32>>, Option<Eq<claim, &'update String>>, Option<Eq<coconspirator_bonus, &'update i32>>, Option<Eq<coconspirator_hf_id, &'update i32>>, Option<Eq<confessed_after_apb_arrest_en_id, &'update i32>>, Option<Eq<contact_hf_id, &'update i32>>, Option<Eq<contacted_en_id, &'update i32>>, Option<Eq<contactor_en_id, &'update i32>>, Option<Eq<convict_is_contact, &'update bool>>, Option<Eq<convicted_hf_id, &'update i32>>, Option<Eq<convicter_en_id, &'update i32>>, Option<Eq<coord, &'update String>>, Option<Eq<corrupt_convicter_hf_id, &'update i32>>, Option<Eq<corruptor_hf_id, &'update i32>>, Option<Eq<corruptor_identity, &'update i32>>, Option<Eq<corruptor_seen_as, &'update String>>, Option<Eq<creation_he_id, &'update i32>>, Option<Eq<creator_hf_id, &'update i32>>, Option<Eq<crime, &'update String>>, Option<Eq<caste, &'update String>>, Option<Eq<creator_unit_id, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for HistoricalEventCC[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<cause, String>>, Option<Eq<changee_hf_id, i32>>, Option<Eq<changer_hf_id, i32>>, Option<Eq<circumstance, String>>, Option<Eq<circumstance_id, i32>>, Option<Eq<civ_entity_id, i32>>, Option<Eq<civ_id, i32>>, Option<Eq<claim, String>>, Option<Eq<coconspirator_bonus, i32>>, Option<Eq<coconspirator_hf_id, i32>>, Option<Eq<confessed_after_apb_arrest_en_id, i32>>, Option<Eq<contact_hf_id, i32>>, Option<Eq<contacted_en_id, i32>>, Option<Eq<contactor_en_id, i32>>, Option<Eq<convict_is_contact, bool>>, Option<Eq<convicted_hf_id, i32>>, Option<Eq<convicter_en_id, i32>>, Option<Eq<coord, String>>, Option<Eq<corrupt_convicter_hf_id, i32>>, Option<Eq<corruptor_hf_id, i32>>, Option<Eq<corruptor_identity, i32>>, Option<Eq<corruptor_seen_as, String>>, Option<Eq<creation_he_id, i32>>, Option<Eq<creator_hf_id, i32>>, Option<Eq<crime, String>>, Option<Eq<caste, String>>, Option<Eq<creator_unit_id, i32>>) as AsChangeset>::Changeset

The update statement this type represents

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

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

impl Clone for HistoricalEventCC[src]

impl DBObject<HistoricalEvent, HistoricalEventCC> for HistoricalEventCC[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<HistoricalEventCC>, Error>
[src]

Get a list of HistoricalEventCC from the database

impl Debug for HistoricalEventCC[src]

impl Default for HistoricalEventCC[src]

impl Fillable for HistoricalEventCC[src]

impl Filler<HistoricalEvent, HistoricalEventCC> for HistoricalEvent[src]

From DB to Core

impl Filler<HistoricalEventCC, HistoricalEvent> for HistoricalEventCC[src]

From Core to DB

impl HasTable for HistoricalEventCC[src]

type Table = table

The table this type is associated with.

impl Hash for HistoricalEventCC[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<he_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<cause, String>>, Option<Eq<changee_hf_id, i32>>, Option<Eq<changer_hf_id, i32>>, Option<Eq<circumstance, String>>, Option<Eq<circumstance_id, i32>>, Option<Eq<civ_entity_id, i32>>, Option<Eq<civ_id, i32>>, Option<Eq<claim, String>>, Option<Eq<coconspirator_bonus, i32>>, Option<Eq<coconspirator_hf_id, i32>>, Option<Eq<confessed_after_apb_arrest_en_id, i32>>, Option<Eq<contact_hf_id, i32>>, Option<Eq<contacted_en_id, i32>>, Option<Eq<contactor_en_id, i32>>, Option<Eq<convict_is_contact, bool>>, Option<Eq<convicted_hf_id, i32>>, Option<Eq<convicter_en_id, i32>>, Option<Eq<coord, String>>, Option<Eq<corrupt_convicter_hf_id, i32>>, Option<Eq<corruptor_hf_id, i32>>, Option<Eq<corruptor_identity, i32>>, Option<Eq<corruptor_seen_as, String>>, Option<Eq<creation_he_id, i32>>, Option<Eq<creator_hf_id, i32>>, Option<Eq<crime, String>>, Option<Eq<caste, String>>, Option<Eq<creator_unit_id, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<he_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<cause, &'insert String>>, Option<Eq<changee_hf_id, &'insert i32>>, Option<Eq<changer_hf_id, &'insert i32>>, Option<Eq<circumstance, &'insert String>>, Option<Eq<circumstance_id, &'insert i32>>, Option<Eq<civ_entity_id, &'insert i32>>, Option<Eq<civ_id, &'insert i32>>, Option<Eq<claim, &'insert String>>, Option<Eq<coconspirator_bonus, &'insert i32>>, Option<Eq<coconspirator_hf_id, &'insert i32>>, Option<Eq<confessed_after_apb_arrest_en_id, &'insert i32>>, Option<Eq<contact_hf_id, &'insert i32>>, Option<Eq<contacted_en_id, &'insert i32>>, Option<Eq<contactor_en_id, &'insert i32>>, Option<Eq<convict_is_contact, &'insert bool>>, Option<Eq<convicted_hf_id, &'insert i32>>, Option<Eq<convicter_en_id, &'insert i32>>, Option<Eq<coord, &'insert String>>, Option<Eq<corrupt_convicter_hf_id, &'insert i32>>, Option<Eq<corruptor_hf_id, &'insert i32>>, Option<Eq<corruptor_identity, &'insert i32>>, Option<Eq<corruptor_seen_as, &'insert String>>, Option<Eq<creation_he_id, &'insert i32>>, Option<Eq<creator_hf_id, &'insert i32>>, Option<Eq<crime, &'insert String>>, Option<Eq<caste, &'insert String>>, Option<Eq<creator_unit_id, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<HistoricalEvent> for HistoricalEventCC[src]

impl PartialEq<HistoricalEventCC> for HistoricalEventCC[src]

impl PartialEq<HistoricalEventCC> for HistoricalEvent[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for HistoricalEventCC where
    (i32, i32, Option<String>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<i32>, Option<i32>, Option<String>, 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<String>, Option<i32>, Option<i32>, Option<String>, Option<String>, Option<i32>): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, i32, Option<String>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<i32>, Option<i32>, Option<String>, 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<String>, Option<i32>, Option<i32>, Option<String>, Option<String>, Option<i32>) as Queryable<__ST, __DB>>::Row

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

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

Auto Trait Implementations

impl RefUnwindSafe for HistoricalEventCC

impl Send for HistoricalEventCC

impl Sync for HistoricalEventCC

impl Unpin for HistoricalEventCC

impl UnwindSafe for HistoricalEventCC

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