pub struct CreateVolumeRequest {
pub create_volume_details: CreateVolumeDetails,
pub opc_retry_token: Option<String>,
}Fields§
§create_volume_details: CreateVolumeDetailsRequest to create a new volume.
opc_retry_token: Option<String>A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
Implementations§
Source§impl CreateVolumeRequest
impl CreateVolumeRequest
Sourcepub fn new(required: CreateVolumeRequestRequired) -> Self
pub fn new(required: CreateVolumeRequestRequired) -> Self
Create a new CreateVolumeRequest with required fields
Sourcepub fn set_create_volume_details(self, value: CreateVolumeDetails) -> Self
pub fn set_create_volume_details(self, value: CreateVolumeDetails) -> Self
Set create_volume_details
Sourcepub fn set_opc_retry_token(self, value: Option<String>) -> Self
pub fn set_opc_retry_token(self, value: Option<String>) -> Self
Set opc_retry_token
Sourcepub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
pub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
Set opc_retry_token (unwraps Option)
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<'de> Deserialize<'de> for CreateVolumeRequest
impl<'de> Deserialize<'de> for CreateVolumeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateVolumeRequest
impl RefUnwindSafe for CreateVolumeRequest
impl Send for CreateVolumeRequest
impl Sync for CreateVolumeRequest
impl Unpin for CreateVolumeRequest
impl UnsafeUnpin for CreateVolumeRequest
impl UnwindSafe for CreateVolumeRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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