#[non_exhaustive]pub struct InstantSnapshotGroupResourceStatus {
pub consistency_membership_resolution_time: Option<Timestamp>,
pub source_info: Option<InstantSnapshotGroupSourceInfo>,
/* private fields */
}Available on crate features
instant-snapshot-groups or region-instant-snapshot-groups only.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.consistency_membership_resolution_time: Option<Timestamp>Output only. [Output Only]
source_info: Option<InstantSnapshotGroupSourceInfo>Output only. [Output Only]
Implementations§
Source§impl InstantSnapshotGroupResourceStatus
impl InstantSnapshotGroupResourceStatus
Sourcepub fn set_consistency_membership_resolution_time<T>(self, v: T) -> Self
pub fn set_consistency_membership_resolution_time<T>(self, v: T) -> Self
Sets the value of consistency_membership_resolution_time.
§Example
ⓘ
use wkt::Timestamp;
let x = InstantSnapshotGroupResourceStatus::new().set_consistency_membership_resolution_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_consistency_membership_resolution_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_consistency_membership_resolution_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of consistency_membership_resolution_time.
§Example
ⓘ
use wkt::Timestamp;
let x = InstantSnapshotGroupResourceStatus::new().set_or_clear_consistency_membership_resolution_time(Some(Timestamp::default()/* use setters */));
let x = InstantSnapshotGroupResourceStatus::new().set_or_clear_consistency_membership_resolution_time(None::<Timestamp>);Sourcepub fn set_source_info<T>(self, v: T) -> Selfwhere
T: Into<InstantSnapshotGroupSourceInfo>,
pub fn set_source_info<T>(self, v: T) -> Selfwhere
T: Into<InstantSnapshotGroupSourceInfo>,
Sets the value of source_info.
§Example
ⓘ
use google_cloud_compute_v1::model::InstantSnapshotGroupSourceInfo;
let x = InstantSnapshotGroupResourceStatus::new().set_source_info(InstantSnapshotGroupSourceInfo::default()/* use setters */);Sourcepub fn set_or_clear_source_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstantSnapshotGroupSourceInfo>,
pub fn set_or_clear_source_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstantSnapshotGroupSourceInfo>,
Sets or clears the value of source_info.
§Example
ⓘ
use google_cloud_compute_v1::model::InstantSnapshotGroupSourceInfo;
let x = InstantSnapshotGroupResourceStatus::new().set_or_clear_source_info(Some(InstantSnapshotGroupSourceInfo::default()/* use setters */));
let x = InstantSnapshotGroupResourceStatus::new().set_or_clear_source_info(None::<InstantSnapshotGroupSourceInfo>);Trait Implementations§
Source§impl Clone for InstantSnapshotGroupResourceStatus
impl Clone for InstantSnapshotGroupResourceStatus
Source§fn clone(&self) -> InstantSnapshotGroupResourceStatus
fn clone(&self) -> InstantSnapshotGroupResourceStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstantSnapshotGroupResourceStatus
impl Default for InstantSnapshotGroupResourceStatus
Source§fn default() -> InstantSnapshotGroupResourceStatus
fn default() -> InstantSnapshotGroupResourceStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstantSnapshotGroupResourceStatus
impl PartialEq for InstantSnapshotGroupResourceStatus
Source§fn eq(&self, other: &InstantSnapshotGroupResourceStatus) -> bool
fn eq(&self, other: &InstantSnapshotGroupResourceStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstantSnapshotGroupResourceStatus
Auto Trait Implementations§
impl Freeze for InstantSnapshotGroupResourceStatus
impl RefUnwindSafe for InstantSnapshotGroupResourceStatus
impl Send for InstantSnapshotGroupResourceStatus
impl Sync for InstantSnapshotGroupResourceStatus
impl Unpin for InstantSnapshotGroupResourceStatus
impl UnsafeUnpin for InstantSnapshotGroupResourceStatus
impl UnwindSafe for InstantSnapshotGroupResourceStatus
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