#[non_exhaustive]pub struct RegionDisksStartAsyncReplicationRequest {
pub async_secondary_disk: Option<String>,
/* private fields */
}Available on crate feature
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_secondary_disk: Option<String>The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
-
https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
-
https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
-
projects/project/zones/zone/disks/disk
-
projects/project/regions/region/disks/disk
-
zones/zone/disks/disk
-
regions/region/disks/diskImplementations§
Source§impl RegionDisksStartAsyncReplicationRequest
impl RegionDisksStartAsyncReplicationRequest
pub fn new() -> Self
Sourcepub fn set_async_secondary_disk<T>(self, v: T) -> Self
pub fn set_async_secondary_disk<T>(self, v: T) -> Self
Sets the value of async_secondary_disk.
§Example
ⓘ
let x = RegionDisksStartAsyncReplicationRequest::new().set_async_secondary_disk("example");Sourcepub fn set_or_clear_async_secondary_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_async_secondary_disk<T>(self, v: Option<T>) -> Self
Sets or clears the value of async_secondary_disk.
§Example
ⓘ
let x = RegionDisksStartAsyncReplicationRequest::new().set_or_clear_async_secondary_disk(Some("example"));
let x = RegionDisksStartAsyncReplicationRequest::new().set_or_clear_async_secondary_disk(None::<String>);Trait Implementations§
Source§impl Clone for RegionDisksStartAsyncReplicationRequest
impl Clone for RegionDisksStartAsyncReplicationRequest
Source§fn clone(&self) -> RegionDisksStartAsyncReplicationRequest
fn clone(&self) -> RegionDisksStartAsyncReplicationRequest
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 Default for RegionDisksStartAsyncReplicationRequest
impl Default for RegionDisksStartAsyncReplicationRequest
Source§fn default() -> RegionDisksStartAsyncReplicationRequest
fn default() -> RegionDisksStartAsyncReplicationRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RegionDisksStartAsyncReplicationRequest
impl PartialEq for RegionDisksStartAsyncReplicationRequest
Source§fn eq(&self, other: &RegionDisksStartAsyncReplicationRequest) -> bool
fn eq(&self, other: &RegionDisksStartAsyncReplicationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RegionDisksStartAsyncReplicationRequest
Auto Trait Implementations§
impl Freeze for RegionDisksStartAsyncReplicationRequest
impl RefUnwindSafe for RegionDisksStartAsyncReplicationRequest
impl Send for RegionDisksStartAsyncReplicationRequest
impl Sync for RegionDisksStartAsyncReplicationRequest
impl Unpin for RegionDisksStartAsyncReplicationRequest
impl UnwindSafe for RegionDisksStartAsyncReplicationRequest
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