pub struct UpdateOptions {
pub update_fields: Option<HashSet<String>>,
}Expand description
Options for sqlmodel_update().
Fields§
§update_fields: Option<HashSet<String>>Only update these fields (if Some). Other fields in the source are ignored.
Implementations§
Source§impl UpdateOptions
impl UpdateOptions
Sourcepub fn update_fields(
self,
fields: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn update_fields( self, fields: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Set fields to update.
Trait Implementations§
Source§impl Clone for UpdateOptions
impl Clone for UpdateOptions
Source§fn clone(&self) -> UpdateOptions
fn clone(&self) -> UpdateOptions
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 UpdateOptions
impl Debug for UpdateOptions
Source§impl Default for UpdateOptions
impl Default for UpdateOptions
Source§fn default() -> UpdateOptions
fn default() -> UpdateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateOptions
impl RefUnwindSafe for UpdateOptions
impl Send for UpdateOptions
impl Sync for UpdateOptions
impl Unpin for UpdateOptions
impl UnwindSafe for UpdateOptions
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).