#[non_exhaustive]pub struct DiskResourceStatus {
pub async_primary_disk: Option<DiskResourceStatusAsyncReplicationStatus>,
pub async_secondary_disks: HashMap<String, DiskResourceStatusAsyncReplicationStatus>,
/* private fields */
}Available on crate features
disks or region-disks 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.async_primary_disk: Option<DiskResourceStatusAsyncReplicationStatus>§async_secondary_disks: HashMap<String, DiskResourceStatusAsyncReplicationStatus>Key: disk, value: AsyncReplicationStatus message
Implementations§
Source§impl DiskResourceStatus
impl DiskResourceStatus
pub fn new() -> Self
Sourcepub fn set_async_primary_disk<T>(self, v: T) -> Selfwhere
T: Into<DiskResourceStatusAsyncReplicationStatus>,
pub fn set_async_primary_disk<T>(self, v: T) -> Selfwhere
T: Into<DiskResourceStatusAsyncReplicationStatus>,
Sets the value of async_primary_disk.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskResourceStatusAsyncReplicationStatus;
let x = DiskResourceStatus::new().set_async_primary_disk(DiskResourceStatusAsyncReplicationStatus::default()/* use setters */);Sourcepub fn set_or_clear_async_primary_disk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskResourceStatusAsyncReplicationStatus>,
pub fn set_or_clear_async_primary_disk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskResourceStatusAsyncReplicationStatus>,
Sets or clears the value of async_primary_disk.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskResourceStatusAsyncReplicationStatus;
let x = DiskResourceStatus::new().set_or_clear_async_primary_disk(Some(DiskResourceStatusAsyncReplicationStatus::default()/* use setters */));
let x = DiskResourceStatus::new().set_or_clear_async_primary_disk(None::<DiskResourceStatusAsyncReplicationStatus>);Sourcepub fn set_async_secondary_disks<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<DiskResourceStatusAsyncReplicationStatus>,
pub fn set_async_secondary_disks<T, K, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<DiskResourceStatusAsyncReplicationStatus>,
Sets the value of async_secondary_disks.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskResourceStatusAsyncReplicationStatus;
let x = DiskResourceStatus::new().set_async_secondary_disks([
("key0", DiskResourceStatusAsyncReplicationStatus::default()/* use setters */),
("key1", DiskResourceStatusAsyncReplicationStatus::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for DiskResourceStatus
impl Clone for DiskResourceStatus
Source§fn clone(&self) -> DiskResourceStatus
fn clone(&self) -> DiskResourceStatus
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 DiskResourceStatus
impl Debug for DiskResourceStatus
Source§impl Default for DiskResourceStatus
impl Default for DiskResourceStatus
Source§fn default() -> DiskResourceStatus
fn default() -> DiskResourceStatus
Returns the “default value” for a type. Read more
Source§impl Message for DiskResourceStatus
impl Message for DiskResourceStatus
Source§impl PartialEq for DiskResourceStatus
impl PartialEq for DiskResourceStatus
impl StructuralPartialEq for DiskResourceStatus
Auto Trait Implementations§
impl Freeze for DiskResourceStatus
impl RefUnwindSafe for DiskResourceStatus
impl Send for DiskResourceStatus
impl Sync for DiskResourceStatus
impl Unpin for DiskResourceStatus
impl UnwindSafe for DiskResourceStatus
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