#[non_exhaustive]pub struct CreateSchemaBundleRequest {
pub parent: String,
pub schema_bundle_id: String,
pub schema_bundle: Option<SchemaBundle>,
/* private fields */
}Expand description
The request for CreateSchemaBundle.
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.parent: StringRequired. The parent resource where this schema bundle will be created.
Values are of the form
projects/{project}/instances/{instance}/tables/{table}.
schema_bundle_id: StringRequired. The unique ID to use for the schema bundle, which will become the final component of the schema bundle’s resource name.
schema_bundle: Option<SchemaBundle>Required. The schema bundle to create.
Implementations§
Source§impl CreateSchemaBundleRequest
impl CreateSchemaBundleRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_schema_bundle_id<T: Into<String>>(self, v: T) -> Self
pub fn set_schema_bundle_id<T: Into<String>>(self, v: T) -> Self
Sets the value of schema_bundle_id.
§Example
ⓘ
let x = CreateSchemaBundleRequest::new().set_schema_bundle_id("example");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 = CreateSchemaBundleRequest::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 = CreateSchemaBundleRequest::new().set_or_clear_schema_bundle(Some(SchemaBundle::default()/* use setters */));
let x = CreateSchemaBundleRequest::new().set_or_clear_schema_bundle(None::<SchemaBundle>);Trait Implementations§
Source§impl Clone for CreateSchemaBundleRequest
impl Clone for CreateSchemaBundleRequest
Source§fn clone(&self) -> CreateSchemaBundleRequest
fn clone(&self) -> CreateSchemaBundleRequest
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 CreateSchemaBundleRequest
impl Debug for CreateSchemaBundleRequest
Source§impl Default for CreateSchemaBundleRequest
impl Default for CreateSchemaBundleRequest
Source§fn default() -> CreateSchemaBundleRequest
fn default() -> CreateSchemaBundleRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSchemaBundleRequest
impl Message for CreateSchemaBundleRequest
impl StructuralPartialEq for CreateSchemaBundleRequest
Auto Trait Implementations§
impl Freeze for CreateSchemaBundleRequest
impl RefUnwindSafe for CreateSchemaBundleRequest
impl Send for CreateSchemaBundleRequest
impl Sync for CreateSchemaBundleRequest
impl Unpin for CreateSchemaBundleRequest
impl UnwindSafe for CreateSchemaBundleRequest
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