#[non_exhaustive]pub struct CreateReplicationRequest {
pub parent: String,
pub replication: Option<Replication>,
pub replication_id: String,
/* private fields */
}Expand description
CreateReplicationRequest creates a replication.
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.parent: StringRequired. The NetApp volume to create the replications of, in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}
replication: Option<Replication>Required. A replication resource
replication_id: StringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
Implementations§
Source§impl CreateReplicationRequest
impl CreateReplicationRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_replication<T>(self, v: T) -> Selfwhere
T: Into<Replication>,
pub fn set_replication<T>(self, v: T) -> Selfwhere
T: Into<Replication>,
Sets the value of replication.
§Example
ⓘ
use google_cloud_netapp_v1::model::Replication;
let x = CreateReplicationRequest::new().set_replication(Replication::default()/* use setters */);Sourcepub fn set_or_clear_replication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Replication>,
pub fn set_or_clear_replication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Replication>,
Sets or clears the value of replication.
§Example
ⓘ
use google_cloud_netapp_v1::model::Replication;
let x = CreateReplicationRequest::new().set_or_clear_replication(Some(Replication::default()/* use setters */));
let x = CreateReplicationRequest::new().set_or_clear_replication(None::<Replication>);Sourcepub fn set_replication_id<T: Into<String>>(self, v: T) -> Self
pub fn set_replication_id<T: Into<String>>(self, v: T) -> Self
Sets the value of replication_id.
§Example
ⓘ
let x = CreateReplicationRequest::new().set_replication_id("example");Trait Implementations§
Source§impl Clone for CreateReplicationRequest
impl Clone for CreateReplicationRequest
Source§fn clone(&self) -> CreateReplicationRequest
fn clone(&self) -> CreateReplicationRequest
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 CreateReplicationRequest
impl Debug for CreateReplicationRequest
Source§impl Default for CreateReplicationRequest
impl Default for CreateReplicationRequest
Source§fn default() -> CreateReplicationRequest
fn default() -> CreateReplicationRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateReplicationRequest
impl Message for CreateReplicationRequest
Source§impl PartialEq for CreateReplicationRequest
impl PartialEq for CreateReplicationRequest
impl StructuralPartialEq for CreateReplicationRequest
Auto Trait Implementations§
impl Freeze for CreateReplicationRequest
impl RefUnwindSafe for CreateReplicationRequest
impl Send for CreateReplicationRequest
impl Sync for CreateReplicationRequest
impl Unpin for CreateReplicationRequest
impl UnwindSafe for CreateReplicationRequest
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