pub enum InsertSource {
Values(Vec<Vec<Expression>>),
Select(Box<SelectStmt>),
DefaultValues,
}Expand description
Source of data for INSERT statement
Variants§
Values(Vec<Vec<Expression>>)
INSERT … VALUES (…)
Select(Box<SelectStmt>)
INSERT … SELECT …
DefaultValues
INSERT … DEFAULT VALUES Inserts a single row using default values for all columns.
Trait Implementations§
Source§impl Clone for InsertSource
impl Clone for InsertSource
Source§fn clone(&self) -> InsertSource
fn clone(&self) -> InsertSource
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 moreSource§impl Debug for InsertSource
impl Debug for InsertSource
Source§impl PartialEq for InsertSource
impl PartialEq for InsertSource
impl StructuralPartialEq for InsertSource
Auto Trait Implementations§
impl Freeze for InsertSource
impl RefUnwindSafe for InsertSource
impl Send for InsertSource
impl Sync for InsertSource
impl Unpin for InsertSource
impl UnwindSafe for InsertSource
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