pub struct UpsertArgs<M, W, C, U, I, S> {
pub where: W,
pub create: C,
pub update: U,
pub include: Option<I>,
pub select: Option<S>,
/* private fields */
}Expand description
Args for upsert.
Fields§
§where: WUnique WHERE input.
create: CCreate-data payload (used if no row matched).
update: UUpdate-data payload (used if a row matched).
include: Option<I>Optional include shape on the returning row.
select: Option<S>Optional select shape on the returning row.
Trait Implementations§
Source§impl<M: Clone, W: Clone, C: Clone, U: Clone, I: Clone, S: Clone> Clone for UpsertArgs<M, W, C, U, I, S>
impl<M: Clone, W: Clone, C: Clone, U: Clone, I: Clone, S: Clone> Clone for UpsertArgs<M, W, C, U, I, S>
Source§fn clone(&self) -> UpsertArgs<M, W, C, U, I, S>
fn clone(&self) -> UpsertArgs<M, W, C, U, I, S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M, W, C, U, I, S> Freeze for UpsertArgs<M, W, C, U, I, S>
impl<M, W, C, U, I, S> RefUnwindSafe for UpsertArgs<M, W, C, U, I, S>where
W: RefUnwindSafe,
C: RefUnwindSafe,
U: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, W, C, U, I, S> Send for UpsertArgs<M, W, C, U, I, S>
impl<M, W, C, U, I, S> Sync for UpsertArgs<M, W, C, U, I, S>
impl<M, W, C, U, I, S> Unpin for UpsertArgs<M, W, C, U, I, S>
impl<M, W, C, U, I, S> UnsafeUnpin for UpsertArgs<M, W, C, U, I, S>
impl<M, W, C, U, I, S> UnwindSafe for UpsertArgs<M, W, C, U, I, S>
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