pub struct InsertSeed<D, T> { /* private fields */ }Implementations§
Source§impl<D, T: Table> InsertSeed<D, T>
impl<D, T: Table> InsertSeed<D, T>
pub fn values<R: InsertRow<Table = T>>(self, row: R) -> Insert<D, R>
Sourcepub fn values_all<R: InsertRow<Table = T> + Insertable>(
self,
rows: impl IntoIterator<Item = R>,
) -> Result<Insert<D, R>, NothingToInsert>
pub fn values_all<R: InsertRow<Table = T> + Insertable>( self, rows: impl IntoIterator<Item = R>, ) -> Result<Insert<D, R>, NothingToInsert>
Every row of a collection at once — the shape a bulk import has,
where the rows are already in a Vec and the first one isn’t
special. INSERT with no rows has no SQL form, so an empty
collection is refused here rather than rendered.
Auto Trait Implementations§
impl<D, T> Freeze for InsertSeed<D, T>
impl<D, T> RefUnwindSafe for InsertSeed<D, T>
impl<D, T> Send for InsertSeed<D, T>
impl<D, T> Sync for InsertSeed<D, T>
impl<D, T> Unpin for InsertSeed<D, T>
impl<D, T> UnsafeUnpin for InsertSeed<D, T>
impl<D, T> UnwindSafe for InsertSeed<D, T>
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