[][src]Struct df_st_db::HistoricalEventUW

pub struct HistoricalEventUW {
    pub he_id: i32,
    pub world_id: i32,
    pub unit_id: Option<i32>,
    pub unit_type: Option<String>,
    pub unretire: Option<bool>,
    pub victim: Option<i32>,
    pub victim_entity: Option<i32>,
    pub victim_hf_id: Option<i32>,
    pub wanted_and_recognized: Option<bool>,
    pub was_raid: Option<bool>,
    pub was_torture: Option<bool>,
    pub wc_id: Option<i32>,
    pub winner_hf_id: Option<i32>,
    pub woundee_hf_id: Option<i32>,
    pub wounder_hf_id: Option<i32>,
    pub wrongful_conviction: Option<bool>,
    pub woundee_caste: Option<i32>,
    pub woundee_race: Option<i32>,
}

Fields

he_id: i32world_id: i32unit_id: Option<i32>unit_type: Option<String>unretire: Option<bool>victim: Option<i32>victim_entity: Option<i32>victim_hf_id: Option<i32>wanted_and_recognized: Option<bool>was_raid: Option<bool>was_torture: Option<bool>wc_id: Option<i32>winner_hf_id: Option<i32>woundee_hf_id: Option<i32>wounder_hf_id: Option<i32>wrongful_conviction: Option<bool>woundee_caste: Option<i32>woundee_race: Option<i32>

Implementations

impl HistoricalEventUW[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<unit_id, &'update i32>>, Option<Eq<unit_type, &'update String>>, Option<Eq<unretire, &'update bool>>, Option<Eq<victim, &'update i32>>, Option<Eq<victim_entity, &'update i32>>, Option<Eq<victim_hf_id, &'update i32>>, Option<Eq<wanted_and_recognized, &'update bool>>, Option<Eq<was_raid, &'update bool>>, Option<Eq<was_torture, &'update bool>>, Option<Eq<wc_id, &'update i32>>, Option<Eq<winner_hf_id, &'update i32>>, Option<Eq<woundee_hf_id, &'update i32>>, Option<Eq<wounder_hf_id, &'update i32>>, Option<Eq<wrongful_conviction, &'update bool>>, Option<Eq<woundee_caste, &'update i32>>, Option<Eq<woundee_race, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for HistoricalEventUW[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<unit_id, i32>>, Option<Eq<unit_type, String>>, Option<Eq<unretire, bool>>, Option<Eq<victim, i32>>, Option<Eq<victim_entity, i32>>, Option<Eq<victim_hf_id, i32>>, Option<Eq<wanted_and_recognized, bool>>, Option<Eq<was_raid, bool>>, Option<Eq<was_torture, bool>>, Option<Eq<wc_id, i32>>, Option<Eq<winner_hf_id, i32>>, Option<Eq<woundee_hf_id, i32>>, Option<Eq<wounder_hf_id, i32>>, Option<Eq<wrongful_conviction, bool>>, Option<Eq<woundee_caste, i32>>, Option<Eq<woundee_race, i32>>) as AsChangeset>::Changeset

The update statement this type represents

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

impl DBObject<HistoricalEvent, HistoricalEventUW> for HistoricalEventUW[src]

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<HistoricalEventUW>, Error>
[src]

Get a list of HistoricalEventUW from the database

impl Debug for HistoricalEventUW[src]

impl Default for HistoricalEventUW[src]

impl Fillable for HistoricalEventUW[src]

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

From DB to Core

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

From Core to DB

impl HasTable for HistoricalEventUW[src]

type Table = table

The table this type is associated with.

impl Hash for HistoricalEventUW[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<he_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<unit_id, i32>>, Option<Eq<unit_type, String>>, Option<Eq<unretire, bool>>, Option<Eq<victim, i32>>, Option<Eq<victim_entity, i32>>, Option<Eq<victim_hf_id, i32>>, Option<Eq<wanted_and_recognized, bool>>, Option<Eq<was_raid, bool>>, Option<Eq<was_torture, bool>>, Option<Eq<wc_id, i32>>, Option<Eq<winner_hf_id, i32>>, Option<Eq<woundee_hf_id, i32>>, Option<Eq<wounder_hf_id, i32>>, Option<Eq<wrongful_conviction, bool>>, Option<Eq<woundee_caste, i32>>, Option<Eq<woundee_race, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<he_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<unit_id, &'insert i32>>, Option<Eq<unit_type, &'insert String>>, Option<Eq<unretire, &'insert bool>>, Option<Eq<victim, &'insert i32>>, Option<Eq<victim_entity, &'insert i32>>, Option<Eq<victim_hf_id, &'insert i32>>, Option<Eq<wanted_and_recognized, &'insert bool>>, Option<Eq<was_raid, &'insert bool>>, Option<Eq<was_torture, &'insert bool>>, Option<Eq<wc_id, &'insert i32>>, Option<Eq<winner_hf_id, &'insert i32>>, Option<Eq<woundee_hf_id, &'insert i32>>, Option<Eq<wounder_hf_id, &'insert i32>>, Option<Eq<wrongful_conviction, &'insert bool>>, Option<Eq<woundee_caste, &'insert i32>>, Option<Eq<woundee_race, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<HistoricalEvent> for HistoricalEventUW[src]

impl PartialEq<HistoricalEventUW> for HistoricalEventUW[src]

impl PartialEq<HistoricalEventUW> for HistoricalEvent[src]

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

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

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

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

Auto Trait Implementations

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

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

impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
    Child: BelongingToDsl<&'a [Parent]>, 
[src]

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[src]

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