Struct vit_servicing_station_lib::db::models::goals::InsertGoal
source · pub struct InsertGoal {
pub goal_name: String,
pub fund_id: i32,
}
Fields§
§goal_name: String
§fund_id: i32
Trait Implementations§
source§impl Clone for InsertGoal
impl Clone for InsertGoal
source§fn clone(&self) -> InsertGoal
fn clone(&self) -> InsertGoal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InsertGoal
impl Debug for InsertGoal
source§impl<'de> Deserialize<'de> for InsertGoal
impl<'de> Deserialize<'de> for InsertGoal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&Goal> for InsertGoal
impl From<&Goal> for InsertGoal
source§impl<'insert> Insertable<table> for &'insert InsertGoal
impl<'insert> Insertable<table> for &'insert InsertGoal
§type Values = <(Option<Eq<goal_name, <&'insert String as AsExpression<<goal_name as Expression>::SqlType>>::Expression>>, Option<Eq<fund_id, <&'insert i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<goal_name, <&'insert String as AsExpression<<goal_name as Expression>::SqlType>>::Expression>>, Option<Eq<fund_id, <&'insert i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl<'insert> Insertable<table> for InsertGoal
impl<'insert> Insertable<table> for InsertGoal
§type Values = <(Option<Eq<goal_name, <String as AsExpression<<goal_name as Expression>::SqlType>>::Expression>>, Option<Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<goal_name, <String as AsExpression<<goal_name as Expression>::SqlType>>::Expression>>, Option<Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moreimpl<'insert> UndecoratedInsertRecord<table> for InsertGoal
Auto Trait Implementations§
impl RefUnwindSafe for InsertGoal
impl Send for InsertGoal
impl Sync for InsertGoal
impl Unpin for InsertGoal
impl UnwindSafe for InsertGoal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more