#[non_exhaustive]pub struct DisksStartAsyncReplicationRequest {
pub async_secondary_disk: Option<String>,
/* private fields */
}Available on crate feature
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 DisksStartAsyncReplicationRequest
impl DisksStartAsyncReplicationRequest
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 = DisksStartAsyncReplicationRequest::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 = DisksStartAsyncReplicationRequest::new().set_or_clear_async_secondary_disk(Some("example"));
let x = DisksStartAsyncReplicationRequest::new().set_or_clear_async_secondary_disk(None::<String>);Trait Implementations§
Source§impl Clone for DisksStartAsyncReplicationRequest
impl Clone for DisksStartAsyncReplicationRequest
Source§fn clone(&self) -> DisksStartAsyncReplicationRequest
fn clone(&self) -> DisksStartAsyncReplicationRequest
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 DisksStartAsyncReplicationRequest
impl Default for DisksStartAsyncReplicationRequest
Source§fn default() -> DisksStartAsyncReplicationRequest
fn default() -> DisksStartAsyncReplicationRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for DisksStartAsyncReplicationRequest
impl PartialEq for DisksStartAsyncReplicationRequest
Source§fn eq(&self, other: &DisksStartAsyncReplicationRequest) -> bool
fn eq(&self, other: &DisksStartAsyncReplicationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisksStartAsyncReplicationRequest
Auto Trait Implementations§
impl Freeze for DisksStartAsyncReplicationRequest
impl RefUnwindSafe for DisksStartAsyncReplicationRequest
impl Send for DisksStartAsyncReplicationRequest
impl Sync for DisksStartAsyncReplicationRequest
impl Unpin for DisksStartAsyncReplicationRequest
impl UnwindSafe for DisksStartAsyncReplicationRequest
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