#[non_exhaustive]pub struct UpdateTableRequest {
pub table: Option<Table>,
pub update_mask: Option<FieldMask>,
pub ignore_warnings: bool,
/* private fields */
}Expand description
The request for UpdateTable.
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.table: Option<Table>Required. The table to update.
The table’s name field is used to identify the table to update.
update_mask: Option<FieldMask>Required. The list of fields to update.
A mask specifying which fields (e.g. change_stream_config) in the table
field should be updated. This mask is relative to the table field, not to
the request message. The wildcard (*) path is currently not supported.
Currently UpdateTable is only supported for the following fields:
change_stream_configchange_stream_config.retention_perioddeletion_protectionrow_key_schema
If column_families is set in update_mask, it will return an
UNIMPLEMENTED error.
ignore_warnings: boolOptional. If true, ignore safety checks when updating the table.
Implementations§
Source§impl UpdateTableRequest
impl UpdateTableRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_table<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_table<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 = UpdateTableRequest::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 = UpdateTableRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateTableRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_ignore_warnings<T: Into<bool>>(self, v: T) -> Self
pub fn set_ignore_warnings<T: Into<bool>>(self, v: T) -> Self
Sets the value of ignore_warnings.
§Example
ⓘ
let x = UpdateTableRequest::new().set_ignore_warnings(true);Trait Implementations§
Source§impl Clone for UpdateTableRequest
impl Clone for UpdateTableRequest
Source§fn clone(&self) -> UpdateTableRequest
fn clone(&self) -> UpdateTableRequest
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 UpdateTableRequest
impl Debug for UpdateTableRequest
Source§impl Default for UpdateTableRequest
impl Default for UpdateTableRequest
Source§fn default() -> UpdateTableRequest
fn default() -> UpdateTableRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateTableRequest
impl Message for UpdateTableRequest
Source§impl PartialEq for UpdateTableRequest
impl PartialEq for UpdateTableRequest
impl StructuralPartialEq for UpdateTableRequest
Auto Trait Implementations§
impl Freeze for UpdateTableRequest
impl RefUnwindSafe for UpdateTableRequest
impl Send for UpdateTableRequest
impl Sync for UpdateTableRequest
impl Unpin for UpdateTableRequest
impl UnwindSafe for UpdateTableRequest
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