pub struct UpdateSpec {
pub assignments: Vec<Assignment>,
pub excluded_columns: Vec<String>,
}Expand description
Specification for what to update on conflict.
Fields§
§assignments: Vec<Assignment>Columns to update with their values.
excluded_columns: Vec<String>Use EXCLUDED values for columns (PostgreSQL/SQLite).
Trait Implementations§
Source§impl Clone for UpdateSpec
impl Clone for UpdateSpec
Source§fn clone(&self) -> UpdateSpec
fn clone(&self) -> UpdateSpec
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 UpdateSpec
impl Debug for UpdateSpec
Source§impl<'de> Deserialize<'de> for UpdateSpec
impl<'de> Deserialize<'de> for UpdateSpec
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
Source§impl PartialEq for UpdateSpec
impl PartialEq for UpdateSpec
Source§impl Serialize for UpdateSpec
impl Serialize for UpdateSpec
impl StructuralPartialEq for UpdateSpec
Auto Trait Implementations§
impl Freeze for UpdateSpec
impl RefUnwindSafe for UpdateSpec
impl Send for UpdateSpec
impl Sync for UpdateSpec
impl Unpin for UpdateSpec
impl UnwindSafe for UpdateSpec
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