Skip to main content

NewUpdateBuild

Struct NewUpdateBuild 

Source
pub struct NewUpdateBuild<'a> {
    pub quantity: &'a i32,
    pub complete: &'a i32,
    pub notes: Option<&'a str>,
    pub part_ver: &'a i32,
    pub part_id: &'a i32,
}

Fields§

§quantity: &'a i32§complete: &'a i32§notes: Option<&'a str>§part_ver: &'a i32§part_id: &'a i32

Trait Implementations§

Source§

impl<'a, 'update> AsChangeset for &'update NewUpdateBuild<'a>

Source§

type Target = table

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

type Changeset = <(Eq<quantity, <&'update &'a i32 as AsExpression<<quantity as Expression>::SqlType>>::Expression>, Eq<complete, <&'update &'a i32 as AsExpression<<complete as Expression>::SqlType>>::Expression>, Option<Eq<notes, <&'update &'a str as AsExpression<<notes as Expression>::SqlType>>::Expression>>, Eq<part_ver, <&'update &'a i32 as AsExpression<<part_ver as Expression>::SqlType>>::Expression>, Eq<part_id, <&'update &'a i32 as AsExpression<<part_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset

The update statement this type represents
Source§

fn as_changeset(self) -> Self::Changeset

Convert self into the actual update statement being executed
Source§

impl<'a, 'update> AsChangeset for NewUpdateBuild<'a>

Source§

type Target = table

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

type Changeset = <(Eq<quantity, <&'a i32 as AsExpression<<quantity as Expression>::SqlType>>::Expression>, Eq<complete, <&'a i32 as AsExpression<<complete as Expression>::SqlType>>::Expression>, Option<Eq<notes, <&'a str as AsExpression<<notes as Expression>::SqlType>>::Expression>>, Eq<part_ver, <&'a i32 as AsExpression<<part_ver as Expression>::SqlType>>::Expression>, Eq<part_id, <&'a i32 as AsExpression<<part_id as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset

The update statement this type represents
Source§

fn as_changeset(self) -> Self::Changeset

Convert self into the actual update statement being executed
Source§

impl<'a> Debug for NewUpdateBuild<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'insert> Insertable<table> for &'insert NewUpdateBuild<'a>

Source§

type Values = <(Option<Eq<quantity, <&'insert &'a i32 as AsExpression<<quantity as Expression>::SqlType>>::Expression>>, Option<Eq<complete, <&'insert &'a i32 as AsExpression<<complete as Expression>::SqlType>>::Expression>>, Option<Eq<notes, <&'insert &'a str as AsExpression<<notes as Expression>::SqlType>>::Expression>>, Option<Eq<part_ver, <&'insert &'a i32 as AsExpression<<part_ver as Expression>::SqlType>>::Expression>>, Option<Eq<part_id, <&'insert &'a i32 as AsExpression<<part_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<'a, 'insert> Insertable<table> for NewUpdateBuild<'a>

Source§

type Values = <(Option<Eq<quantity, <&'a i32 as AsExpression<<quantity as Expression>::SqlType>>::Expression>>, Option<Eq<complete, <&'a i32 as AsExpression<<complete as Expression>::SqlType>>::Expression>>, Option<Eq<notes, <&'a str as AsExpression<<notes as Expression>::SqlType>>::Expression>>, Option<Eq<part_ver, <&'a i32 as AsExpression<<part_ver as Expression>::SqlType>>::Expression>>, Option<Eq<part_id, <&'a i32 as AsExpression<<part_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<'a, 'insert> UndecoratedInsertRecord<table> for NewUpdateBuild<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for NewUpdateBuild<'a>

§

impl<'a> RefUnwindSafe for NewUpdateBuild<'a>

§

impl<'a> Send for NewUpdateBuild<'a>

§

impl<'a> Sync for NewUpdateBuild<'a>

§

impl<'a> Unpin for NewUpdateBuild<'a>

§

impl<'a> UnsafeUnpin for NewUpdateBuild<'a>

§

impl<'a> UnwindSafe for NewUpdateBuild<'a>

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
where Self: Sized + AsExpression<T>,

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

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.