#[non_exhaustive]pub struct UpdateFieldRequest {
pub field: Option<Field>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The request for FirestoreAdmin.UpdateField.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: Option<Field>Required. The field to be updated.
update_mask: Option<FieldMask>A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field.
Implementations§
Source§impl UpdateFieldRequest
impl UpdateFieldRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_field<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_field<T>(self, v: Option<T>) -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateFieldRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateFieldRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateFieldRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateFieldRequest
impl Clone for UpdateFieldRequest
Source§fn clone(&self) -> UpdateFieldRequest
fn clone(&self) -> UpdateFieldRequest
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 UpdateFieldRequest
impl Debug for UpdateFieldRequest
Source§impl Default for UpdateFieldRequest
impl Default for UpdateFieldRequest
Source§fn default() -> UpdateFieldRequest
fn default() -> UpdateFieldRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateFieldRequest
impl Message for UpdateFieldRequest
Source§impl PartialEq for UpdateFieldRequest
impl PartialEq for UpdateFieldRequest
impl StructuralPartialEq for UpdateFieldRequest
Auto Trait Implementations§
impl Freeze for UpdateFieldRequest
impl RefUnwindSafe for UpdateFieldRequest
impl Send for UpdateFieldRequest
impl Sync for UpdateFieldRequest
impl Unpin for UpdateFieldRequest
impl UnwindSafe for UpdateFieldRequest
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