#[non_exhaustive]pub struct CreateClusterMetadata {
pub original_request: Option<CreateClusterRequest>,
pub request_time: Option<Timestamp>,
pub finish_time: Option<Timestamp>,
pub tables: HashMap<String, TableProgress>,
/* private fields */
}Expand description
The metadata for the Operation returned by CreateCluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.original_request: Option<CreateClusterRequest>The request that prompted the initiation of this CreateCluster operation.
request_time: Option<Timestamp>The time at which the original request was received.
finish_time: Option<Timestamp>The time at which the operation failed or was completed successfully.
tables: HashMap<String, TableProgress>Keys: the full name of each table that existed in the instance when
CreateCluster was first called, i.e.
projects/<project>/instances/<instance>/tables/<table>. Any table added
to the instance by a later API call will be created in the new cluster by
that API call, not this one.
Values: information on how much of a table’s data has been copied to the newly-created cluster so far.
Implementations§
Source§impl CreateClusterMetadata
impl CreateClusterMetadata
Sourcepub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<CreateClusterRequest>,
pub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<CreateClusterRequest>,
Sets the value of original_request.
§Example
use google_cloud_bigtable_admin_v2::model::CreateClusterRequest;
let x = CreateClusterMetadata::new().set_original_request(CreateClusterRequest::default()/* use setters */);Sourcepub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateClusterRequest>,
pub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateClusterRequest>,
Sets or clears the value of original_request.
§Example
use google_cloud_bigtable_admin_v2::model::CreateClusterRequest;
let x = CreateClusterMetadata::new().set_or_clear_original_request(Some(CreateClusterRequest::default()/* use setters */));
let x = CreateClusterMetadata::new().set_or_clear_original_request(None::<CreateClusterRequest>);Sourcepub fn set_request_time<T>(self, v: T) -> Self
pub fn set_request_time<T>(self, v: T) -> Self
Sets the value of request_time.
§Example
use wkt::Timestamp;
let x = CreateClusterMetadata::new().set_request_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_request_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_request_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of request_time.
§Example
use wkt::Timestamp;
let x = CreateClusterMetadata::new().set_or_clear_request_time(Some(Timestamp::default()/* use setters */));
let x = CreateClusterMetadata::new().set_or_clear_request_time(None::<Timestamp>);Sourcepub fn set_finish_time<T>(self, v: T) -> Self
pub fn set_finish_time<T>(self, v: T) -> Self
Sets the value of finish_time.
§Example
use wkt::Timestamp;
let x = CreateClusterMetadata::new().set_finish_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of finish_time.
§Example
use wkt::Timestamp;
let x = CreateClusterMetadata::new().set_or_clear_finish_time(Some(Timestamp::default()/* use setters */));
let x = CreateClusterMetadata::new().set_or_clear_finish_time(None::<Timestamp>);Sourcepub fn set_tables<T, K, V>(self, v: T) -> Self
pub fn set_tables<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CreateClusterMetadata
impl Clone for CreateClusterMetadata
Source§fn clone(&self) -> CreateClusterMetadata
fn clone(&self) -> CreateClusterMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateClusterMetadata
impl Debug for CreateClusterMetadata
Source§impl Default for CreateClusterMetadata
impl Default for CreateClusterMetadata
Source§fn default() -> CreateClusterMetadata
fn default() -> CreateClusterMetadata
Source§impl Message for CreateClusterMetadata
impl Message for CreateClusterMetadata
Source§impl PartialEq for CreateClusterMetadata
impl PartialEq for CreateClusterMetadata
impl StructuralPartialEq for CreateClusterMetadata
Auto Trait Implementations§
impl Freeze for CreateClusterMetadata
impl RefUnwindSafe for CreateClusterMetadata
impl Send for CreateClusterMetadata
impl Sync for CreateClusterMetadata
impl Unpin for CreateClusterMetadata
impl UnsafeUnpin for CreateClusterMetadata
impl UnwindSafe for CreateClusterMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request