pub struct Insert<Out> { /* private fields */ }Implementations§
Source§impl<Out> Insert<Out>
impl<Out> Insert<Out>
pub fn new(table: Table) -> Self
pub fn value<M, T, V>(self, column: Column<M, T>, value: V) -> Selfwhere
V: ColumnValue<T>,
pub fn row<F>(self, build: F) -> Self
pub fn returning(self, columns: Vec<ColumnRef>) -> Self
pub fn returning_all(self) -> Self
pub fn compile(&self) -> CompiledSql
Trait Implementations§
Auto Trait Implementations§
impl<Out> Freeze for Insert<Out>
impl<Out> RefUnwindSafe for Insert<Out>where
Out: RefUnwindSafe,
impl<Out> Send for Insert<Out>where
Out: Send,
impl<Out> Sync for Insert<Out>where
Out: Sync,
impl<Out> Unpin for Insert<Out>where
Out: Unpin,
impl<Out> UnwindSafe for Insert<Out>where
Out: UnwindSafe,
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