pub struct BatchCreate<T> { /* private fields */ }Expand description
Batch create helper for creating multiple records.
Implementations§
Source§impl<T> BatchCreate<T>
impl<T> BatchCreate<T>
Sourcepub fn skip_duplicates(self) -> Self
pub fn skip_duplicates(self) -> Self
Skip duplicate records instead of failing.
Sourcepub fn into_items(self) -> Vec<T>
pub fn into_items(self) -> Vec<T>
Get the items.
Sourcepub fn should_skip_duplicates(&self) -> bool
pub fn should_skip_duplicates(&self) -> bool
Check if duplicates should be skipped.
Trait Implementations§
Source§impl<T: Clone> Clone for BatchCreate<T>
impl<T: Clone> Clone for BatchCreate<T>
Source§fn clone(&self) -> BatchCreate<T>
fn clone(&self) -> BatchCreate<T>
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 moreSource§impl<T: Debug> Debug for BatchCreate<T>
impl<T: Debug> Debug for BatchCreate<T>
Source§impl<T: Default> Default for BatchCreate<T>
impl<T: Default> Default for BatchCreate<T>
Source§fn default() -> BatchCreate<T>
fn default() -> BatchCreate<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for BatchCreate<T>
impl<T> RefUnwindSafe for BatchCreate<T>where
T: RefUnwindSafe,
impl<T> Send for BatchCreate<T>where
T: Send,
impl<T> Sync for BatchCreate<T>where
T: Sync,
impl<T> Unpin for BatchCreate<T>where
T: Unpin,
impl<T> UnwindSafe for BatchCreate<T>where
T: 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