pub struct UpdateField {
pub skip: bool,
pub skip_fn: Option<Arc<dyn Fn() -> bool + Send + Sync>>,
pub field: String,
pub operator: UpdateFieldOperator,
pub value: Option<Arg>,
pub value_fn: Option<Arc<dyn Fn() -> Arg + Send + Sync>>,
}Expand description
UpdateField descriptor.
Fields§
§skip: bool§skip_fn: Option<Arc<dyn Fn() -> bool + Send + Sync>>§field: String§operator: UpdateFieldOperator§value: Option<Arg>§value_fn: Option<Arc<dyn Fn() -> Arg + Send + Sync>>Implementations§
Source§impl UpdateField
impl UpdateField
pub fn new( field: impl Into<String>, operator: UpdateFieldOperator, value: Option<Arg>, opts: UpdateFieldOptions, ) -> Self
Trait Implementations§
Source§impl Clone for UpdateField
impl Clone for UpdateField
Source§fn clone(&self) -> UpdateField
fn clone(&self) -> UpdateField
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 UpdateField
impl Debug for UpdateField
Source§impl From<UpdateField> for UpdateValue
impl From<UpdateField> for UpdateValue
Source§fn from(v: UpdateField) -> Self
fn from(v: UpdateField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateField
impl !RefUnwindSafe for UpdateField
impl !Send for UpdateField
impl !Sync for UpdateField
impl Unpin for UpdateField
impl !UnwindSafe for UpdateField
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