[][src]Struct df_st_db::Coordinate

pub struct Coordinate {
    pub id: i32,
    pub world_id: i32,
    pub x: i32,
    pub y: i32,
    pub region_id: Option<i32>,
    pub underground_region_id: Option<i32>,
    pub world_construction_id: Option<i32>,
    pub entity_id: Option<i32>,
}

Fields

id: i32world_id: i32x: i32y: i32region_id: Option<i32>underground_region_id: Option<i32>world_construction_id: Option<i32>entity_id: Option<i32>

Implementations

impl Coordinate[src]

pub fn new() -> Self[src]

Trait Implementations

impl BelongsTo<Coordinate> for Site[src]

type ForeignKey = i32

The foreign key of this struct

type ForeignKeyColumn = coordinate_id

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

impl BelongsTo<Entity> for Coordinate[src]

type ForeignKey = i32

The foreign key of this struct

type ForeignKeyColumn = entity_id

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

impl BelongsTo<Region> for Coordinate[src]

type ForeignKey = i32

The foreign key of this struct

type ForeignKeyColumn = region_id

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

impl BelongsTo<UndergroundRegion> for Coordinate[src]

type ForeignKey = i32

The foreign key of this struct

type ForeignKeyColumn = underground_region_id

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

impl BelongsTo<WorldConstruction> for Coordinate[src]

type ForeignKey = i32

The foreign key of this struct

type ForeignKeyColumn = world_construction_id

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

impl Clone for Coordinate[src]

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

Get a filtered list of coordinates from the database

impl Debug for Coordinate[src]

Force a new format for Coordinate to not clutter the screen

impl Default for Coordinate[src]

impl Display for Coordinate[src]

impl Fillable for Coordinate[src]

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

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

impl HasTable for Coordinate[src]

type Table = table

The table this type is associated with.

impl Hash for Coordinate[src]

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

type Id = &'ident i32

The type of this struct's identifier. Read more

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

type Values = <(Option<Eq<id, i32>>, Option<Eq<world_id, i32>>, Option<Eq<x, i32>>, Option<Eq<y, i32>>, Option<Eq<region_id, i32>>, Option<Eq<underground_region_id, i32>>, Option<Eq<world_construction_id, i32>>, Option<Eq<entity_id, i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

type Values = <(Option<Eq<id, &'insert i32>>, Option<Eq<world_id, &'insert i32>>, Option<Eq<x, &'insert i32>>, Option<Eq<y, &'insert i32>>, Option<Eq<region_id, &'insert i32>>, Option<Eq<underground_region_id, &'insert i32>>, Option<Eq<world_construction_id, &'insert i32>>, Option<Eq<entity_id, &'insert i32>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Coordinate> for Coordinate[src]

impl PartialEq<Coordinate> for Coordinate[src]

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

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

Auto Trait Implementations

impl RefUnwindSafe for Coordinate

impl Send for Coordinate

impl Sync for Coordinate

impl Unpin for Coordinate

impl UnwindSafe for Coordinate

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> ToString for T where
    T: Display + ?Sized
[src]

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