#[non_exhaustive]pub struct PartialUpdateClusterMetadata {
pub request_time: Option<Timestamp>,
pub finish_time: Option<Timestamp>,
pub original_request: Option<PartialUpdateClusterRequest>,
/* private fields */
}Expand description
The metadata for the Operation returned by PartialUpdateCluster.
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.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.
original_request: Option<PartialUpdateClusterRequest>The original request for PartialUpdateCluster.
Implementations§
Source§impl PartialUpdateClusterMetadata
impl PartialUpdateClusterMetadata
pub fn new() -> Self
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 = PartialUpdateClusterMetadata::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 = PartialUpdateClusterMetadata::new().set_or_clear_request_time(Some(Timestamp::default()/* use setters */));
let x = PartialUpdateClusterMetadata::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 = PartialUpdateClusterMetadata::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 = PartialUpdateClusterMetadata::new().set_or_clear_finish_time(Some(Timestamp::default()/* use setters */));
let x = PartialUpdateClusterMetadata::new().set_or_clear_finish_time(None::<Timestamp>);Sourcepub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<PartialUpdateClusterRequest>,
pub fn set_original_request<T>(self, v: T) -> Selfwhere
T: Into<PartialUpdateClusterRequest>,
Sets the value of original_request.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::PartialUpdateClusterRequest;
let x = PartialUpdateClusterMetadata::new().set_original_request(PartialUpdateClusterRequest::default()/* use setters */);Sourcepub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<PartialUpdateClusterRequest>,
pub fn set_or_clear_original_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<PartialUpdateClusterRequest>,
Sets or clears the value of original_request.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::PartialUpdateClusterRequest;
let x = PartialUpdateClusterMetadata::new().set_or_clear_original_request(Some(PartialUpdateClusterRequest::default()/* use setters */));
let x = PartialUpdateClusterMetadata::new().set_or_clear_original_request(None::<PartialUpdateClusterRequest>);Trait Implementations§
Source§impl Clone for PartialUpdateClusterMetadata
impl Clone for PartialUpdateClusterMetadata
Source§fn clone(&self) -> PartialUpdateClusterMetadata
fn clone(&self) -> PartialUpdateClusterMetadata
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 PartialUpdateClusterMetadata
impl Debug for PartialUpdateClusterMetadata
Source§impl Default for PartialUpdateClusterMetadata
impl Default for PartialUpdateClusterMetadata
Source§fn default() -> PartialUpdateClusterMetadata
fn default() -> PartialUpdateClusterMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for PartialUpdateClusterMetadata
impl PartialEq for PartialUpdateClusterMetadata
Source§fn eq(&self, other: &PartialUpdateClusterMetadata) -> bool
fn eq(&self, other: &PartialUpdateClusterMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartialUpdateClusterMetadata
Auto Trait Implementations§
impl Freeze for PartialUpdateClusterMetadata
impl RefUnwindSafe for PartialUpdateClusterMetadata
impl Send for PartialUpdateClusterMetadata
impl Sync for PartialUpdateClusterMetadata
impl Unpin for PartialUpdateClusterMetadata
impl UnwindSafe for PartialUpdateClusterMetadata
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