#[non_exhaustive]pub struct CreateMaterializedViewRequest {
pub parent: String,
pub materialized_view_id: String,
pub materialized_view: Option<MaterializedView>,
/* private fields */
}Expand description
Request message for BigtableInstanceAdmin.CreateMaterializedView.
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 instance where this materialized view will be created.
Format: projects/{project}/instances/{instance}.
materialized_view_id: StringRequired. The ID to use for the materialized view, which will become the final component of the materialized view’s resource name.
materialized_view: Option<MaterializedView>Required. The materialized view to create.
Implementations§
Source§impl CreateMaterializedViewRequest
impl CreateMaterializedViewRequest
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_materialized_view_id<T: Into<String>>(self, v: T) -> Self
pub fn set_materialized_view_id<T: Into<String>>(self, v: T) -> Self
Sets the value of materialized_view_id.
§Example
ⓘ
let x = CreateMaterializedViewRequest::new().set_materialized_view_id("example");Sourcepub fn set_materialized_view<T>(self, v: T) -> Selfwhere
T: Into<MaterializedView>,
pub fn set_materialized_view<T>(self, v: T) -> Selfwhere
T: Into<MaterializedView>,
Sets the value of materialized_view.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::MaterializedView;
let x = CreateMaterializedViewRequest::new().set_materialized_view(MaterializedView::default()/* use setters */);Sourcepub fn set_or_clear_materialized_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<MaterializedView>,
pub fn set_or_clear_materialized_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<MaterializedView>,
Sets or clears the value of materialized_view.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::MaterializedView;
let x = CreateMaterializedViewRequest::new().set_or_clear_materialized_view(Some(MaterializedView::default()/* use setters */));
let x = CreateMaterializedViewRequest::new().set_or_clear_materialized_view(None::<MaterializedView>);Trait Implementations§
Source§impl Clone for CreateMaterializedViewRequest
impl Clone for CreateMaterializedViewRequest
Source§fn clone(&self) -> CreateMaterializedViewRequest
fn clone(&self) -> CreateMaterializedViewRequest
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 Default for CreateMaterializedViewRequest
impl Default for CreateMaterializedViewRequest
Source§fn default() -> CreateMaterializedViewRequest
fn default() -> CreateMaterializedViewRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateMaterializedViewRequest
impl PartialEq for CreateMaterializedViewRequest
Source§fn eq(&self, other: &CreateMaterializedViewRequest) -> bool
fn eq(&self, other: &CreateMaterializedViewRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateMaterializedViewRequest
Auto Trait Implementations§
impl Freeze for CreateMaterializedViewRequest
impl RefUnwindSafe for CreateMaterializedViewRequest
impl Send for CreateMaterializedViewRequest
impl Sync for CreateMaterializedViewRequest
impl Unpin for CreateMaterializedViewRequest
impl UnwindSafe for CreateMaterializedViewRequest
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