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 on_conflict_do_nothing<M, C>(self, target: C) -> Selfwhere
C: ConflictColumns<M>,
pub fn on_conflict_do_update<M, C, U>(self, target: C, updates: U) -> Selfwhere
C: ConflictColumns<M>,
U: ConflictColumns<M>,
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> UnsafeUnpin for Insert<Out>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more