[][src]Struct df_st_db::Artifact

pub struct Artifact {
    pub id: i32,
    pub world_id: i32,
    pub name: Option<String>,
    pub site_id: Option<i32>,
    pub structure_local_id: Option<i32>,
    pub holder_hfid: Option<i32>,
    pub abs_tile_x: Option<i32>,
    pub abs_tile_y: Option<i32>,
    pub abs_tile_z: Option<i32>,
    pub subregion_id: Option<i32>,
    pub item_name: Option<String>,
    pub item_type: Option<String>,
    pub item_subtype: Option<String>,
    pub item_writing: Option<i32>,
    pub item_page_number: Option<i32>,
    pub item_page_written_content_id: Option<i32>,
    pub item_writing_written_content_id: Option<i32>,
    pub item_description: Option<String>,
    pub item_mat: Option<String>,
}

Fields

id: i32world_id: i32name: Option<String>site_id: Option<i32>structure_local_id: Option<i32>holder_hfid: Option<i32>abs_tile_x: Option<i32>abs_tile_y: Option<i32>abs_tile_z: Option<i32>subregion_id: Option<i32>item_name: Option<String>item_type: Option<String>item_subtype: Option<String>item_writing: Option<i32>item_page_number: Option<i32>item_page_written_content_id: Option<i32>item_writing_written_content_id: Option<i32>item_description: Option<String>item_mat: Option<String>

Implementations

impl Artifact[src]

pub fn new() -> Self[src]

Trait Implementations

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

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, &'update i32>, Option<Eq<name, &'update String>>, Option<Eq<site_id, &'update i32>>, Option<Eq<structure_local_id, &'update i32>>, Option<Eq<holder_hfid, &'update i32>>, Option<Eq<abs_tile_x, &'update i32>>, Option<Eq<abs_tile_y, &'update i32>>, Option<Eq<abs_tile_z, &'update i32>>, Option<Eq<subregion_id, &'update i32>>, Option<Eq<item_name, &'update String>>, Option<Eq<item_type, &'update String>>, Option<Eq<item_subtype, &'update String>>, Option<Eq<item_writing, &'update i32>>, Option<Eq<item_page_number, &'update i32>>, Option<Eq<item_page_written_content_id, &'update i32>>, Option<Eq<item_writing_written_content_id, &'update i32>>, Option<Eq<item_description, &'update String>>, Option<Eq<item_mat, &'update String>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Artifact[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<world_id, i32>, Option<Eq<name, String>>, Option<Eq<site_id, i32>>, Option<Eq<structure_local_id, i32>>, Option<Eq<holder_hfid, i32>>, Option<Eq<abs_tile_x, i32>>, Option<Eq<abs_tile_y, i32>>, Option<Eq<abs_tile_z, i32>>, Option<Eq<subregion_id, i32>>, Option<Eq<item_name, String>>, Option<Eq<item_type, String>>, Option<Eq<item_subtype, String>>, Option<Eq<item_writing, i32>>, Option<Eq<item_page_number, i32>>, Option<Eq<item_page_written_content_id, i32>>, Option<Eq<item_writing_written_content_id, i32>>, Option<Eq<item_description, String>>, Option<Eq<item_mat, String>>) as AsChangeset>::Changeset

The update statement this type represents

impl Clone for Artifact[src]

impl DBObject<Artifact, Artifact> for Artifact[src]

impl Debug for Artifact[src]

impl Default for Artifact[src]

impl Fillable for Artifact[src]

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

From Core to DB

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

From DB to Core

impl HasTable for Artifact[src]

type Table = table

The table this type is associated with.

impl Hash for Artifact[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<name, String>>, Option<Eq<site_id, i32>>, Option<Eq<structure_local_id, i32>>, Option<Eq<holder_hfid, i32>>, Option<Eq<abs_tile_x, i32>>, Option<Eq<abs_tile_y, i32>>, Option<Eq<abs_tile_z, i32>>, Option<Eq<subregion_id, i32>>, Option<Eq<item_name, String>>, Option<Eq<item_type, String>>, Option<Eq<item_subtype, String>>, Option<Eq<item_writing, i32>>, Option<Eq<item_page_number, i32>>, Option<Eq<item_page_written_content_id, i32>>, Option<Eq<item_writing_written_content_id, i32>>, Option<Eq<item_description, String>>, Option<Eq<item_mat, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<name, &'insert String>>, Option<Eq<site_id, &'insert i32>>, Option<Eq<structure_local_id, &'insert i32>>, Option<Eq<holder_hfid, &'insert i32>>, Option<Eq<abs_tile_x, &'insert i32>>, Option<Eq<abs_tile_y, &'insert i32>>, Option<Eq<abs_tile_z, &'insert i32>>, Option<Eq<subregion_id, &'insert i32>>, Option<Eq<item_name, &'insert String>>, Option<Eq<item_type, &'insert String>>, Option<Eq<item_subtype, &'insert String>>, Option<Eq<item_writing, &'insert i32>>, Option<Eq<item_page_number, &'insert i32>>, Option<Eq<item_page_written_content_id, &'insert i32>>, Option<Eq<item_writing_written_content_id, &'insert i32>>, Option<Eq<item_description, &'insert String>>, Option<Eq<item_mat, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Artifact> for Artifact[src]

impl PartialEq<Artifact> for Artifact[src]

impl PartialEq<Artifact> for Artifact[src]

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

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

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

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

Auto Trait Implementations

impl RefUnwindSafe for Artifact

impl Send for Artifact

impl Sync for Artifact

impl Unpin for Artifact

impl UnwindSafe for Artifact

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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