UpdatePointModel

Struct UpdatePointModel 

Source
pub struct UpdatePointModel {
    pub map_id: Option<String>,
    pub spawn_x: Option<i32>,
    pub spawn_y: Option<i32>,
    pub radius: Option<i32>,
    pub spawn_time: Option<i32>,
    pub click_x: Option<i32>,
    pub click_y: Option<i32>,
    pub click_time: Option<i32>,
    pub offset: Option<i32>,
}

Fields§

§map_id: Option<String>§spawn_x: Option<i32>§spawn_y: Option<i32>§radius: Option<i32>§spawn_time: Option<i32>§click_x: Option<i32>§click_y: Option<i32>§click_time: Option<i32>§offset: Option<i32>

Trait Implementations§

Source§

impl<'update> AsChangeset for &'update UpdatePointModel

Source§

type Target = table

The table which Self::Changeset will be updating
Source§

type Changeset = <(Option<Grouped<Eq<map_id, <&'update String as AsExpression<<map_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_x, <&'update i32 as AsExpression<<spawn_x as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_y, <&'update i32 as AsExpression<<spawn_y as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<radius, <&'update i32 as AsExpression<<radius as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_time, <&'update i32 as AsExpression<<spawn_time as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_x, <&'update i32 as AsExpression<<click_x as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_y, <&'update i32 as AsExpression<<click_y as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_time, <&'update i32 as AsExpression<<click_time as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<offset, <&'update i32 as AsExpression<<offset as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset

The update statement this type represents
Source§

fn as_changeset(self) -> <Self as AsChangeset>::Changeset

Convert self into the actual update statement being executed
Source§

impl AsChangeset for UpdatePointModel

Source§

type Target = table

The table which Self::Changeset will be updating
Source§

type Changeset = <(Option<Grouped<Eq<map_id, <String as AsExpression<<map_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_x, <i32 as AsExpression<<spawn_x as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_y, <i32 as AsExpression<<spawn_y as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<radius, <i32 as AsExpression<<radius as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<spawn_time, <i32 as AsExpression<<spawn_time as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_x, <i32 as AsExpression<<click_x as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_y, <i32 as AsExpression<<click_y as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<click_time, <i32 as AsExpression<<click_time as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<offset, <i32 as AsExpression<<offset as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset

The update statement this type represents
Source§

fn as_changeset(self) -> <Self as AsChangeset>::Changeset

Convert self into the actual update statement being executed

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V