pub struct OnConflictArgs {
pub constraint: Vec<String>,
pub update_columns: Vec<String>,
pub where_filter: Option<TableFilter>,
}Expand description
Arguments for on conflict handling.
Fields§
§constraint: Vec<String>Constraint columns for conflict detection
update_columns: Vec<String>Update action on conflict
where_filter: Option<TableFilter>Additional where condition for update
Implementations§
Source§impl OnConflictArgs
impl OnConflictArgs
Sourcepub fn with_update_columns(self, columns: Vec<String>) -> Self
pub fn with_update_columns(self, columns: Vec<String>) -> Self
Set columns to update on conflict.
Sourcepub fn with_where(self, filter: TableFilter) -> Self
pub fn with_where(self, filter: TableFilter) -> Self
Set where filter for update.
Trait Implementations§
Source§impl Clone for OnConflictArgs
impl Clone for OnConflictArgs
Source§fn clone(&self) -> OnConflictArgs
fn clone(&self) -> OnConflictArgs
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 Debug for OnConflictArgs
impl Debug for OnConflictArgs
Source§impl Default for OnConflictArgs
impl Default for OnConflictArgs
Source§fn default() -> OnConflictArgs
fn default() -> OnConflictArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OnConflictArgs
impl<'de> Deserialize<'de> for OnConflictArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OnConflictArgs
impl RefUnwindSafe for OnConflictArgs
impl Send for OnConflictArgs
impl Sync for OnConflictArgs
impl Unpin for OnConflictArgs
impl UnwindSafe for OnConflictArgs
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