pub enum InsertSource {
Values(Vec<Vec<Expr>>),
Select(Box<QueryStmt>),
DefaultValues,
}Expand description
Source of data for INSERT.
Variants§
Values(Vec<Vec<Expr>>)
VALUES (expr, …), (expr, …), …
Select(Box<QueryStmt>)
INSERT INTO … SELECT …
DefaultValues
DEFAULT VALUES (PG, SQLite, SQL Server).
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 moreAuto Trait Implementations§
impl Freeze for InsertSource
impl !RefUnwindSafe for InsertSource
impl Send for InsertSource
impl Sync for InsertSource
impl Unpin for InsertSource
impl UnsafeUnpin 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