pub struct InsertPlan {
pub into: QualifiedIdentifier,
pub columns: Vec<CoercibleField>,
pub body: Payload,
pub on_conflict: Option<OnConflict>,
pub where_: Vec<CoercibleLogicTree>,
pub returning: Vec<CoercibleSelectField>,
pub pk_cols: Vec<FieldName>,
pub apply_defaults: bool,
}Expand description
INSERT plan details
Fields§
§into: QualifiedIdentifierTarget table
columns: Vec<CoercibleField>Typed columns to insert
body: PayloadRequest body
on_conflict: Option<OnConflict>ON CONFLICT handling
where_: Vec<CoercibleLogicTree>WHERE clause for conditional insert
returning: Vec<CoercibleSelectField>RETURNING columns
pk_cols: Vec<FieldName>Primary key columns
apply_defaults: boolWhether to apply column defaults
Trait Implementations§
Source§impl Clone for InsertPlan
impl Clone for InsertPlan
Source§fn clone(&self) -> InsertPlan
fn clone(&self) -> InsertPlan
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for InsertPlan
impl RefUnwindSafe for InsertPlan
impl Send for InsertPlan
impl Sync for InsertPlan
impl Unpin for InsertPlan
impl UnsafeUnpin for InsertPlan
impl UnwindSafe for InsertPlan
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