[][src]Struct df_st_db::HFSiteLink

pub struct HFSiteLink {
    pub hf_id: i32,
    pub site_id: i32,
    pub link_type: String,
    pub world_id: i32,
    pub entity_id: Option<i32>,
    pub occupation_id: Option<i32>,
    pub sub_id: Option<i32>,
}

Fields

hf_id: i32site_id: i32link_type: Stringworld_id: i32entity_id: Option<i32>occupation_id: Option<i32>sub_id: Option<i32>

Implementations

impl HFSiteLink[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<entity_id, &'update i32>>, Option<Eq<occupation_id, &'update i32>>, Option<Eq<sub_id, &'update i32>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for HFSiteLink[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<entity_id, i32>>, Option<Eq<occupation_id, i32>>, Option<Eq<sub_id, i32>>) as AsChangeset>::Changeset

The update statement this type represents

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

type ForeignKey = __FK

The foreign key of this struct

type ForeignKeyColumn = hf_id

The database column representing the foreign key of the table this struct represents Read more

impl Clone for HFSiteLink[src]

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

Get a list of HFSiteLink from the database

impl Debug for HFSiteLink[src]

impl Default for HFSiteLink[src]

impl Fillable for HFSiteLink[src]

impl Filler<HFSiteLink, HFSiteLink> for HFSiteLink[src]

impl Filler<HFSiteLink, HFSiteLink> for HFSiteLink[src]

From Core to DB

impl Filler<HFSiteLink, HFSiteLink> for HFSiteLink[src]

From DB to Core

impl HasTable for HFSiteLink[src]

type Table = table

The table this type is associated with.

impl Hash for HFSiteLink[src]

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

type Id = (&'ident i32, &'ident i32, &'ident String)

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<hf_id, i32>>, Option<Eq<site_id, i32>>, Option<Eq<link_type, String>>, Option<Eq<world_id, i32>>, Option<Eq<entity_id, i32>>, Option<Eq<occupation_id, i32>>, Option<Eq<sub_id, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<hf_id, &'insert i32>>, Option<Eq<site_id, &'insert i32>>, Option<Eq<link_type, &'insert String>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<entity_id, &'insert i32>>, Option<Eq<occupation_id, &'insert i32>>, Option<Eq<sub_id, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<HFSiteLink> for HFSiteLink[src]

impl PartialEq<HFSiteLink> for HFSiteLink[src]

impl PartialEq<HFSiteLink> for HFSiteLink[src]

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

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

Auto Trait Implementations

impl RefUnwindSafe for HFSiteLink

impl Send for HFSiteLink

impl Sync for HFSiteLink

impl Unpin for HFSiteLink

impl UnwindSafe for HFSiteLink

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