[][src]Struct df_st_db::HistoricalEventTT

pub struct HistoricalEventTT {
    pub he_id: i32,
    pub world_id: i32,
    pub target_civ_id: Option<i32>,
    pub target_en_id: Option<i32>,
    pub target_hf_id: Option<i32>,
    pub target_identity: Option<i32>,
    pub target_seen_as: Option<String>,
    pub teacher_hf_id: Option<i32>,
    pub theft_method: Option<String>,
    pub took_items: Option<bool>,
    pub took_livestock: Option<bool>,
    pub top_facet: Option<String>,
    pub top_facet_modifier: Option<i32>,
    pub top_facet_rating: Option<i32>,
    pub top_relationship_factor: Option<String>,
    pub top_relationship_modifier: Option<i32>,
    pub top_relationship_rating: Option<i32>,
    pub top_value: Option<String>,
    pub top_value_modifier: Option<i32>,
    pub top_value_rating: Option<i32>,
    pub topic: Option<String>,
    pub trader_entity_id: Option<i32>,
    pub trader_hf_id: Option<i32>,
    pub trickster_hf_id: Option<i32>,
    pub tree: Option<i32>,
    pub trickster: Option<i32>,
}

Fields

he_id: i32world_id: i32target_civ_id: Option<i32>target_en_id: Option<i32>target_hf_id: Option<i32>target_identity: Option<i32>target_seen_as: Option<String>teacher_hf_id: Option<i32>theft_method: Option<String>took_items: Option<bool>took_livestock: Option<bool>top_facet: Option<String>top_facet_modifier: Option<i32>top_facet_rating: Option<i32>top_relationship_factor: Option<String>top_relationship_modifier: Option<i32>top_relationship_rating: Option<i32>top_value: Option<String>top_value_modifier: Option<i32>top_value_rating: Option<i32>topic: Option<String>trader_entity_id: Option<i32>trader_hf_id: Option<i32>trickster_hf_id: Option<i32>tree: Option<i32>trickster: Option<i32>

Implementations

impl HistoricalEventTT[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<target_civ_id, &'update i32>>, Option<Eq<target_en_id, &'update i32>>, Option<Eq<target_hf_id, &'update i32>>, Option<Eq<target_identity, &'update i32>>, Option<Eq<target_seen_as, &'update String>>, Option<Eq<teacher_hf_id, &'update i32>>, Option<Eq<theft_method, &'update String>>, Option<Eq<took_items, &'update bool>>, Option<Eq<took_livestock, &'update bool>>, Option<Eq<top_facet, &'update String>>, Option<Eq<top_facet_modifier, &'update i32>>, Option<Eq<top_facet_rating, &'update i32>>, Option<Eq<top_relationship_factor, &'update String>>, Option<Eq<top_relationship_modifier, &'update i32>>, Option<Eq<top_relationship_rating, &'update i32>>, Option<Eq<top_value, &'update String>>, Option<Eq<top_value_modifier, &'update i32>>, Option<Eq<top_value_rating, &'update i32>>, Option<Eq<topic, &'update String>>, Option<Eq<trader_entity_id, &'update i32>>, Option<Eq<trader_hf_id, &'update i32>>, Option<Eq<trickster_hf_id, &'update i32>>, Option<Eq<tree, &'update i32>>, Option<Eq<trickster, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for HistoricalEventTT[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<target_civ_id, i32>>, Option<Eq<target_en_id, i32>>, Option<Eq<target_hf_id, i32>>, Option<Eq<target_identity, i32>>, Option<Eq<target_seen_as, String>>, Option<Eq<teacher_hf_id, i32>>, Option<Eq<theft_method, String>>, Option<Eq<took_items, bool>>, Option<Eq<took_livestock, bool>>, Option<Eq<top_facet, String>>, Option<Eq<top_facet_modifier, i32>>, Option<Eq<top_facet_rating, i32>>, Option<Eq<top_relationship_factor, String>>, Option<Eq<top_relationship_modifier, i32>>, Option<Eq<top_relationship_rating, i32>>, Option<Eq<top_value, String>>, Option<Eq<top_value_modifier, i32>>, Option<Eq<top_value_rating, i32>>, Option<Eq<topic, String>>, Option<Eq<trader_entity_id, i32>>, Option<Eq<trader_hf_id, i32>>, Option<Eq<trickster_hf_id, i32>>, Option<Eq<tree, i32>>, Option<Eq<trickster, i32>>) as AsChangeset>::Changeset

The update statement this type represents

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

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

Get a list of HistoricalEventTT from the database

impl Debug for HistoricalEventTT[src]

impl Default for HistoricalEventTT[src]

impl Fillable for HistoricalEventTT[src]

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

From DB to Core

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

From Core to DB

impl HasTable for HistoricalEventTT[src]

type Table = table

The table this type is associated with.

impl Hash for HistoricalEventTT[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<he_id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<target_civ_id, i32>>, Option<Eq<target_en_id, i32>>, Option<Eq<target_hf_id, i32>>, Option<Eq<target_identity, i32>>, Option<Eq<target_seen_as, String>>, Option<Eq<teacher_hf_id, i32>>, Option<Eq<theft_method, String>>, Option<Eq<took_items, bool>>, Option<Eq<took_livestock, bool>>, Option<Eq<top_facet, String>>, Option<Eq<top_facet_modifier, i32>>, Option<Eq<top_facet_rating, i32>>, Option<Eq<top_relationship_factor, String>>, Option<Eq<top_relationship_modifier, i32>>, Option<Eq<top_relationship_rating, i32>>, Option<Eq<top_value, String>>, Option<Eq<top_value_modifier, i32>>, Option<Eq<top_value_rating, i32>>, Option<Eq<topic, String>>, Option<Eq<trader_entity_id, i32>>, Option<Eq<trader_hf_id, i32>>, Option<Eq<trickster_hf_id, i32>>, Option<Eq<tree, i32>>, Option<Eq<trickster, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<he_id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<target_civ_id, &'insert i32>>, Option<Eq<target_en_id, &'insert i32>>, Option<Eq<target_hf_id, &'insert i32>>, Option<Eq<target_identity, &'insert i32>>, Option<Eq<target_seen_as, &'insert String>>, Option<Eq<teacher_hf_id, &'insert i32>>, Option<Eq<theft_method, &'insert String>>, Option<Eq<took_items, &'insert bool>>, Option<Eq<took_livestock, &'insert bool>>, Option<Eq<top_facet, &'insert String>>, Option<Eq<top_facet_modifier, &'insert i32>>, Option<Eq<top_facet_rating, &'insert i32>>, Option<Eq<top_relationship_factor, &'insert String>>, Option<Eq<top_relationship_modifier, &'insert i32>>, Option<Eq<top_relationship_rating, &'insert i32>>, Option<Eq<top_value, &'insert String>>, Option<Eq<top_value_modifier, &'insert i32>>, Option<Eq<top_value_rating, &'insert i32>>, Option<Eq<topic, &'insert String>>, Option<Eq<trader_entity_id, &'insert i32>>, Option<Eq<trader_hf_id, &'insert i32>>, Option<Eq<trickster_hf_id, &'insert i32>>, Option<Eq<tree, &'insert i32>>, Option<Eq<trickster, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<HistoricalEvent> for HistoricalEventTT[src]

impl PartialEq<HistoricalEventTT> for HistoricalEventTT[src]

impl PartialEq<HistoricalEventTT> for HistoricalEvent[src]

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

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

Auto Trait Implementations

impl RefUnwindSafe for HistoricalEventTT

impl Send for HistoricalEventTT

impl Sync for HistoricalEventTT

impl Unpin for HistoricalEventTT

impl UnwindSafe for HistoricalEventTT

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