#[non_exhaustive]pub struct CreateVolumeRequest {
pub parent: String,
pub volume_id: String,
pub volume: Option<Volume>,
/* private fields */
}Expand description
Message for creating a Volume
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. Value for parent.
volume_id: StringRequired. Id of the requesting volume. 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.
volume: Option<Volume>Required. The volume being created.
Implementations§
Source§impl CreateVolumeRequest
impl CreateVolumeRequest
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_volume_id<T: Into<String>>(self, v: T) -> Self
pub fn set_volume_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_volume<T>(self, v: T) -> Self
pub fn set_volume<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_volume<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_volume<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateVolumeRequest
impl Clone for CreateVolumeRequest
Source§fn clone(&self) -> CreateVolumeRequest
fn clone(&self) -> CreateVolumeRequest
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 CreateVolumeRequest
impl Debug for CreateVolumeRequest
Source§impl Default for CreateVolumeRequest
impl Default for CreateVolumeRequest
Source§fn default() -> CreateVolumeRequest
fn default() -> CreateVolumeRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateVolumeRequest
impl Message for CreateVolumeRequest
Source§impl PartialEq for CreateVolumeRequest
impl PartialEq for CreateVolumeRequest
impl StructuralPartialEq for CreateVolumeRequest
Auto Trait Implementations§
impl Freeze for CreateVolumeRequest
impl RefUnwindSafe for CreateVolumeRequest
impl Send for CreateVolumeRequest
impl Sync for CreateVolumeRequest
impl Unpin for CreateVolumeRequest
impl UnwindSafe for CreateVolumeRequest
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