#[non_exhaustive]pub struct CreateMaterializedViewMetadata {
pub original_request: Option<CreateMaterializedViewRequest>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}Expand description
The metadata for the Operation returned by 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.original_request: Option<CreateMaterializedViewRequest>The request that prompted the initiation of this CreateMaterializedView operation.
start_time: Option<Timestamp>The time at which this operation started.
end_time: Option<Timestamp>If set, the time at which this operation finished or was canceled.
Implementations§
Source§impl CreateMaterializedViewMetadata
impl CreateMaterializedViewMetadata
pub fn new() -> Self
Sourcepub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<CreateMaterializedViewRequest>,
pub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<CreateMaterializedViewRequest>,
Sets the value of original_request.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::CreateMaterializedViewRequest;
let x = CreateMaterializedViewMetadata::new().set_original_request(CreateMaterializedViewRequest::default()/* use setters */);Sourcepub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateMaterializedViewRequest>,
pub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateMaterializedViewRequest>,
Sets or clears the value of original_request.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::CreateMaterializedViewRequest;
let x = CreateMaterializedViewMetadata::new().set_or_clear_original_request(Some(CreateMaterializedViewRequest::default()/* use setters */));
let x = CreateMaterializedViewMetadata::new().set_or_clear_original_request(None::<CreateMaterializedViewRequest>);Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = CreateMaterializedViewMetadata::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = CreateMaterializedViewMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = CreateMaterializedViewMetadata::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateMaterializedViewMetadata
impl Clone for CreateMaterializedViewMetadata
Source§fn clone(&self) -> CreateMaterializedViewMetadata
fn clone(&self) -> CreateMaterializedViewMetadata
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 CreateMaterializedViewMetadata
impl Default for CreateMaterializedViewMetadata
Source§fn default() -> CreateMaterializedViewMetadata
fn default() -> CreateMaterializedViewMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateMaterializedViewMetadata
impl PartialEq for CreateMaterializedViewMetadata
Source§fn eq(&self, other: &CreateMaterializedViewMetadata) -> bool
fn eq(&self, other: &CreateMaterializedViewMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateMaterializedViewMetadata
Auto Trait Implementations§
impl Freeze for CreateMaterializedViewMetadata
impl RefUnwindSafe for CreateMaterializedViewMetadata
impl Send for CreateMaterializedViewMetadata
impl Sync for CreateMaterializedViewMetadata
impl Unpin for CreateMaterializedViewMetadata
impl UnwindSafe for CreateMaterializedViewMetadata
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