pub struct Insert {
pub with: Option<With>,
pub or_conflict: Option<ResolveType>,
pub tbl_name: QualifiedName,
pub columns: Option<DistinctNames>,
pub body: InsertBody,
pub returning: Option<Vec<ResultColumn>>,
}Expand description
INSERT
Fields§
§with: Option<With>CTE
or_conflict: Option<ResolveType>OR
tbl_name: QualifiedNametable name
columns: Option<DistinctNames>COLUMNS
body: InsertBodyVALUES or SELECT
returning: Option<Vec<ResultColumn>>RETURNING
Trait Implementations§
impl Eq for Insert
impl StructuralPartialEq for Insert
Source§impl ToSqlString for Insert
impl ToSqlString for Insert
Source§fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
Convert the given value to String
Auto Trait Implementations§
impl Freeze for Insert
impl RefUnwindSafe for Insert
impl Send for Insert
impl Sync for Insert
impl Unpin for Insert
impl UnsafeUnpin for Insert
impl UnwindSafe for Insert
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.