#[non_exhaustive]pub struct CreateVolumeForkRequest {
pub name: String,
pub parent_name: Option<String>,
pub as_of: Option<i64>,
pub volume_type: Option<String>,
}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.name: String§parent_name: Option<String>§as_of: Option<i64>§volume_type: Option<String>Implementations§
Source§impl CreateVolumeForkRequest
impl CreateVolumeForkRequest
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_parent_name(self, value: impl Into<String>) -> Self
pub fn with_parent_name(self, value: impl Into<String>) -> Self
Sets parent_name.
Sourcepub fn with_as_of(self, value: i64) -> Self
pub fn with_as_of(self, value: i64) -> Self
Sets as_of.
Sourcepub fn with_volume_type(self, value: impl Into<String>) -> Self
pub fn with_volume_type(self, value: impl Into<String>) -> Self
Sets volume_type.
Trait Implementations§
Source§impl Clone for CreateVolumeForkRequest
impl Clone for CreateVolumeForkRequest
Source§impl Debug for CreateVolumeForkRequest
impl Debug for CreateVolumeForkRequest
Source§impl Default for CreateVolumeForkRequest
impl Default for CreateVolumeForkRequest
Auto Trait Implementations§
impl Freeze for CreateVolumeForkRequest
impl RefUnwindSafe for CreateVolumeForkRequest
impl Send for CreateVolumeForkRequest
impl Sync for CreateVolumeForkRequest
impl Unpin for CreateVolumeForkRequest
impl UnsafeUnpin for CreateVolumeForkRequest
impl UnwindSafe for CreateVolumeForkRequest
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