[][src]Struct df_st_db::HistoricalEventNO

pub struct HistoricalEventNO {
    pub he_id: i32,
    pub world_id: i32,
    pub name_only: Option<bool>,
    pub new_ab_id: Option<i32>,
    pub new_account: Option<i32>,
    pub new_artifact_id: Option<i32>,
    pub new_caste: Option<i32>,
    pub new_equipment_level: Option<i32>,
    pub new_leader_hf_id: Option<i32>,
    pub new_race_id: Option<String>,
    pub new_site_civ_id: Option<i32>,
    pub new_job: Option<String>,
    pub new_structure_id: Option<i32>,
    pub no_defeat_mention: Option<bool>,
    pub no_prison_available: Option<bool>,
    pub occasion_id: Option<i32>,
    pub old_ab_id: Option<i32>,
    pub old_account: Option<i32>,
    pub old_artifact_id: Option<i32>,
    pub old_caste: Option<i32>,
    pub old_race_id: Option<String>,
    pub outcome: Option<String>,
    pub overthrown_hf_id: Option<i32>,
    pub old_job: Option<String>,
    pub old_structure_id: Option<i32>,
}

Fields

he_id: i32world_id: i32name_only: Option<bool>new_ab_id: Option<i32>new_account: Option<i32>new_artifact_id: Option<i32>new_caste: Option<i32>new_equipment_level: Option<i32>new_leader_hf_id: Option<i32>new_race_id: Option<String>new_site_civ_id: Option<i32>new_job: Option<String>new_structure_id: Option<i32>no_defeat_mention: Option<bool>no_prison_available: Option<bool>occasion_id: Option<i32>old_ab_id: Option<i32>old_account: Option<i32>old_artifact_id: Option<i32>old_caste: Option<i32>old_race_id: Option<String>outcome: Option<String>overthrown_hf_id: Option<i32>old_job: Option<String>old_structure_id: Option<i32>

Implementations

impl HistoricalEventNO[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<name_only, &'update bool>>, Option<Eq<new_ab_id, &'update i32>>, Option<Eq<new_account, &'update i32>>, Option<Eq<new_artifact_id, &'update i32>>, Option<Eq<new_caste, &'update i32>>, Option<Eq<new_equipment_level, &'update i32>>, Option<Eq<new_leader_hf_id, &'update i32>>, Option<Eq<new_race_id, &'update String>>, Option<Eq<new_site_civ_id, &'update i32>>, Option<Eq<new_job, &'update String>>, Option<Eq<new_structure_id, &'update i32>>, Option<Eq<no_defeat_mention, &'update bool>>, Option<Eq<no_prison_available, &'update bool>>, Option<Eq<occasion_id, &'update i32>>, Option<Eq<old_ab_id, &'update i32>>, Option<Eq<old_account, &'update i32>>, Option<Eq<old_artifact_id, &'update i32>>, Option<Eq<old_caste, &'update i32>>, Option<Eq<old_race_id, &'update String>>, Option<Eq<outcome, &'update String>>, Option<Eq<overthrown_hf_id, &'update i32>>, Option<Eq<old_job, &'update String>>, Option<Eq<old_structure_id, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for HistoricalEventNO[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<name_only, bool>>, Option<Eq<new_ab_id, i32>>, Option<Eq<new_account, i32>>, Option<Eq<new_artifact_id, i32>>, Option<Eq<new_caste, i32>>, Option<Eq<new_equipment_level, i32>>, Option<Eq<new_leader_hf_id, i32>>, Option<Eq<new_race_id, String>>, Option<Eq<new_site_civ_id, i32>>, Option<Eq<new_job, String>>, Option<Eq<new_structure_id, i32>>, Option<Eq<no_defeat_mention, bool>>, Option<Eq<no_prison_available, bool>>, Option<Eq<occasion_id, i32>>, Option<Eq<old_ab_id, i32>>, Option<Eq<old_account, i32>>, Option<Eq<old_artifact_id, i32>>, Option<Eq<old_caste, i32>>, Option<Eq<old_race_id, String>>, Option<Eq<outcome, String>>, Option<Eq<overthrown_hf_id, i32>>, Option<Eq<old_job, String>>, Option<Eq<old_structure_id, i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<__FK> BelongsTo<HistoricalEvent> for HistoricalEventNO 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 HistoricalEventNO[src]

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

Get a list of HistoricalEventNO from the database

impl Debug for HistoricalEventNO[src]

impl Default for HistoricalEventNO[src]

impl Fillable for HistoricalEventNO[src]

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

From DB to Core

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

From Core to DB

impl HasTable for HistoricalEventNO[src]

type Table = table

The table this type is associated with.

impl Hash for HistoricalEventNO[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<he_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<name_only, bool>>, Option<Eq<new_ab_id, i32>>, Option<Eq<new_account, i32>>, Option<Eq<new_artifact_id, i32>>, Option<Eq<new_caste, i32>>, Option<Eq<new_equipment_level, i32>>, Option<Eq<new_leader_hf_id, i32>>, Option<Eq<new_race_id, String>>, Option<Eq<new_site_civ_id, i32>>, Option<Eq<new_job, String>>, Option<Eq<new_structure_id, i32>>, Option<Eq<no_defeat_mention, bool>>, Option<Eq<no_prison_available, bool>>, Option<Eq<occasion_id, i32>>, Option<Eq<old_ab_id, i32>>, Option<Eq<old_account, i32>>, Option<Eq<old_artifact_id, i32>>, Option<Eq<old_caste, i32>>, Option<Eq<old_race_id, String>>, Option<Eq<outcome, String>>, Option<Eq<overthrown_hf_id, i32>>, Option<Eq<old_job, String>>, Option<Eq<old_structure_id, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<he_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<name_only, &'insert bool>>, Option<Eq<new_ab_id, &'insert i32>>, Option<Eq<new_account, &'insert i32>>, Option<Eq<new_artifact_id, &'insert i32>>, Option<Eq<new_caste, &'insert i32>>, Option<Eq<new_equipment_level, &'insert i32>>, Option<Eq<new_leader_hf_id, &'insert i32>>, Option<Eq<new_race_id, &'insert String>>, Option<Eq<new_site_civ_id, &'insert i32>>, Option<Eq<new_job, &'insert String>>, Option<Eq<new_structure_id, &'insert i32>>, Option<Eq<no_defeat_mention, &'insert bool>>, Option<Eq<no_prison_available, &'insert bool>>, Option<Eq<occasion_id, &'insert i32>>, Option<Eq<old_ab_id, &'insert i32>>, Option<Eq<old_account, &'insert i32>>, Option<Eq<old_artifact_id, &'insert i32>>, Option<Eq<old_caste, &'insert i32>>, Option<Eq<old_race_id, &'insert String>>, Option<Eq<outcome, &'insert String>>, Option<Eq<overthrown_hf_id, &'insert i32>>, Option<Eq<old_job, &'insert String>>, Option<Eq<old_structure_id, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<HistoricalEvent> for HistoricalEventNO[src]

impl PartialEq<HistoricalEventNO> for HistoricalEventNO[src]

impl PartialEq<HistoricalEventNO> for HistoricalEvent[src]

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

type Row = <(i32, i32, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<String>, Option<i32>, Option<String>, Option<i32>, Option<bool>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<String>, Option<String>, Option<i32>, 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 HistoricalEventNO[src]

Auto Trait Implementations

impl RefUnwindSafe for HistoricalEventNO

impl Send for HistoricalEventNO

impl Sync for HistoricalEventNO

impl Unpin for HistoricalEventNO

impl UnwindSafe for HistoricalEventNO

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