#[non_exhaustive]pub struct UpdateSchemaBundleRequest {
pub schema_bundle: Option<SchemaBundle>,
pub update_mask: Option<FieldMask>,
pub ignore_warnings: bool,
/* private fields */
}Expand description
The request for UpdateSchemaBundle.
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.schema_bundle: Option<SchemaBundle>Required. The schema bundle to update.
The schema bundle’s name field is used to identify the schema bundle to
update. Values are of the form
projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}
update_mask: Option<FieldMask>Optional. The list of fields to update.
ignore_warnings: boolOptional. If set, ignore the safety checks when updating the Schema Bundle. The safety checks are:
- The new Schema Bundle is backwards compatible with the existing Schema Bundle.
Implementations§
Source§impl UpdateSchemaBundleRequest
impl UpdateSchemaBundleRequest
pub fn new() -> Self
Sourcepub fn set_schema_bundle<T>(self, v: T) -> Selfwhere
T: Into<SchemaBundle>,
pub fn set_schema_bundle<T>(self, v: T) -> Selfwhere
T: Into<SchemaBundle>,
Sets the value of schema_bundle.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::SchemaBundle;
let x = UpdateSchemaBundleRequest::new().set_schema_bundle(SchemaBundle::default()/* use setters */);Sourcepub fn set_or_clear_schema_bundle<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchemaBundle>,
pub fn set_or_clear_schema_bundle<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchemaBundle>,
Sets or clears the value of schema_bundle.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::SchemaBundle;
let x = UpdateSchemaBundleRequest::new().set_or_clear_schema_bundle(Some(SchemaBundle::default()/* use setters */));
let x = UpdateSchemaBundleRequest::new().set_or_clear_schema_bundle(None::<SchemaBundle>);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 = UpdateSchemaBundleRequest::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 = UpdateSchemaBundleRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateSchemaBundleRequest::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 = UpdateSchemaBundleRequest::new().set_ignore_warnings(true);Trait Implementations§
Source§impl Clone for UpdateSchemaBundleRequest
impl Clone for UpdateSchemaBundleRequest
Source§fn clone(&self) -> UpdateSchemaBundleRequest
fn clone(&self) -> UpdateSchemaBundleRequest
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 UpdateSchemaBundleRequest
impl Debug for UpdateSchemaBundleRequest
Source§impl Default for UpdateSchemaBundleRequest
impl Default for UpdateSchemaBundleRequest
Source§fn default() -> UpdateSchemaBundleRequest
fn default() -> UpdateSchemaBundleRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateSchemaBundleRequest
impl Message for UpdateSchemaBundleRequest
impl StructuralPartialEq for UpdateSchemaBundleRequest
Auto Trait Implementations§
impl Freeze for UpdateSchemaBundleRequest
impl RefUnwindSafe for UpdateSchemaBundleRequest
impl Send for UpdateSchemaBundleRequest
impl Sync for UpdateSchemaBundleRequest
impl Unpin for UpdateSchemaBundleRequest
impl UnwindSafe for UpdateSchemaBundleRequest
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