#[non_exhaustive]pub struct DiskAsyncReplicationList {
pub async_replication_disk: Option<DiskAsyncReplication>,
/* 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_replication_disk: Option<DiskAsyncReplication>Implementations§
Source§impl DiskAsyncReplicationList
impl DiskAsyncReplicationList
pub fn new() -> Self
Sourcepub fn set_async_replication_disk<T>(self, v: T) -> Selfwhere
T: Into<DiskAsyncReplication>,
pub fn set_async_replication_disk<T>(self, v: T) -> Selfwhere
T: Into<DiskAsyncReplication>,
Sets the value of async_replication_disk.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskAsyncReplication;
let x = DiskAsyncReplicationList::new().set_async_replication_disk(DiskAsyncReplication::default()/* use setters */);Sourcepub fn set_or_clear_async_replication_disk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskAsyncReplication>,
pub fn set_or_clear_async_replication_disk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskAsyncReplication>,
Sets or clears the value of async_replication_disk.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskAsyncReplication;
let x = DiskAsyncReplicationList::new().set_or_clear_async_replication_disk(Some(DiskAsyncReplication::default()/* use setters */));
let x = DiskAsyncReplicationList::new().set_or_clear_async_replication_disk(None::<DiskAsyncReplication>);Trait Implementations§
Source§impl Clone for DiskAsyncReplicationList
impl Clone for DiskAsyncReplicationList
Source§fn clone(&self) -> DiskAsyncReplicationList
fn clone(&self) -> DiskAsyncReplicationList
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 DiskAsyncReplicationList
impl Debug for DiskAsyncReplicationList
Source§impl Default for DiskAsyncReplicationList
impl Default for DiskAsyncReplicationList
Source§fn default() -> DiskAsyncReplicationList
fn default() -> DiskAsyncReplicationList
Returns the “default value” for a type. Read more
Source§impl Message for DiskAsyncReplicationList
impl Message for DiskAsyncReplicationList
Source§impl PartialEq for DiskAsyncReplicationList
impl PartialEq for DiskAsyncReplicationList
impl StructuralPartialEq for DiskAsyncReplicationList
Auto Trait Implementations§
impl Freeze for DiskAsyncReplicationList
impl RefUnwindSafe for DiskAsyncReplicationList
impl Send for DiskAsyncReplicationList
impl Sync for DiskAsyncReplicationList
impl Unpin for DiskAsyncReplicationList
impl UnwindSafe for DiskAsyncReplicationList
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