pub struct FieldUpdateOperation {
pub add: Option<Option<Value>>,
pub set: Option<Option<Value>>,
pub remove: Option<Option<Value>>,
pub edit: Option<Option<Value>>,
}
Expand description
FieldUpdateOperation : Details of an operation to perform on a field.
Fields§
§add: Option<Option<Value>>
A map containing the name of a field and the value to add to it.
set: Option<Option<Value>>
A map containing the name of a field and the value to set in it.
remove: Option<Option<Value>>
A map containing the name of a field and the value to removed from it.
edit: Option<Option<Value>>
A map containing the name of a field and the value to edit in it.
Implementations§
Source§impl FieldUpdateOperation
impl FieldUpdateOperation
Sourcepub fn new() -> FieldUpdateOperation
pub fn new() -> FieldUpdateOperation
Details of an operation to perform on a field.
Trait Implementations§
Source§impl Clone for FieldUpdateOperation
impl Clone for FieldUpdateOperation
Source§fn clone(&self) -> FieldUpdateOperation
fn clone(&self) -> FieldUpdateOperation
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 FieldUpdateOperation
impl Debug for FieldUpdateOperation
Source§impl Default for FieldUpdateOperation
impl Default for FieldUpdateOperation
Source§fn default() -> FieldUpdateOperation
fn default() -> FieldUpdateOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldUpdateOperation
impl<'de> Deserialize<'de> for FieldUpdateOperation
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 FieldUpdateOperation
impl PartialEq for FieldUpdateOperation
Source§impl Serialize for FieldUpdateOperation
impl Serialize for FieldUpdateOperation
impl StructuralPartialEq for FieldUpdateOperation
Auto Trait Implementations§
impl Freeze for FieldUpdateOperation
impl RefUnwindSafe for FieldUpdateOperation
impl Send for FieldUpdateOperation
impl Sync for FieldUpdateOperation
impl Unpin for FieldUpdateOperation
impl UnwindSafe for FieldUpdateOperation
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