#[non_exhaustive]pub struct UpdateDataTableRequest {
pub data_table: Option<DataTable>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
A request to update details of data table.
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.data_table: Option<DataTable>Required. This field is used to identify the datatable to update. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table}
update_mask: Option<FieldMask>Optional. The list of metadata fields to update. Currently data tables only
support updating the description, row_time_to_live and scope_info
fields. When no field mask is supplied, all non-empty fields will be
updated. A field mask of “*” will update all fields, whether empty or not.
Implementations§
Source§impl UpdateDataTableRequest
impl UpdateDataTableRequest
Sourcepub fn set_data_table<T>(self, v: T) -> Self
pub fn set_data_table<T>(self, v: T) -> Self
Sets the value of data_table.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DataTable;
let x = UpdateDataTableRequest::new().set_data_table(DataTable::default()/* use setters */);Sourcepub fn set_or_clear_data_table<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_data_table<T>(self, v: Option<T>) -> Self
Sets or clears the value of data_table.
§Example
ⓘ
use google_cloud_chronicle_v1::model::DataTable;
let x = UpdateDataTableRequest::new().set_or_clear_data_table(Some(DataTable::default()/* use setters */));
let x = UpdateDataTableRequest::new().set_or_clear_data_table(None::<DataTable>);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 = UpdateDataTableRequest::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 = UpdateDataTableRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateDataTableRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateDataTableRequest
impl Clone for UpdateDataTableRequest
Source§fn clone(&self) -> UpdateDataTableRequest
fn clone(&self) -> UpdateDataTableRequest
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 UpdateDataTableRequest
impl Debug for UpdateDataTableRequest
Source§impl Default for UpdateDataTableRequest
impl Default for UpdateDataTableRequest
Source§fn default() -> UpdateDataTableRequest
fn default() -> UpdateDataTableRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateDataTableRequest
impl Message for UpdateDataTableRequest
Source§impl PartialEq for UpdateDataTableRequest
impl PartialEq for UpdateDataTableRequest
impl StructuralPartialEq for UpdateDataTableRequest
Auto Trait Implementations§
impl Freeze for UpdateDataTableRequest
impl RefUnwindSafe for UpdateDataTableRequest
impl Send for UpdateDataTableRequest
impl Sync for UpdateDataTableRequest
impl Unpin for UpdateDataTableRequest
impl UnsafeUnpin for UpdateDataTableRequest
impl UnwindSafe for UpdateDataTableRequest
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