Skip to main content

InsertSeed

Struct InsertSeed 

Source
pub struct InsertSeed<D, T> { /* private fields */ }

Implementations§

Source§

impl<D, T: Table> InsertSeed<D, T>

Source

pub fn values<R: InsertRow<Table = T>>(self, row: R) -> Insert<D, R>

Source

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>
where PhantomData<fn() -> (D, T)>: Freeze,

§

impl<D, T> RefUnwindSafe for InsertSeed<D, T>

§

impl<D, T> Send for InsertSeed<D, T>
where PhantomData<fn() -> (D, T)>: Send,

§

impl<D, T> Sync for InsertSeed<D, T>
where PhantomData<fn() -> (D, T)>: Sync,

§

impl<D, T> Unpin for InsertSeed<D, T>
where PhantomData<fn() -> (D, T)>: Unpin,

§

impl<D, T> UnsafeUnpin for InsertSeed<D, T>

§

impl<D, T> UnwindSafe for InsertSeed<D, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> Superset<Nil, Nil> for S

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WrapNullable<NotNull> for T