pub struct DeleteVolumeRequest {
pub volume_id: String,
pub if_match: Option<String>,
}Fields§
§volume_id: StringThe OCID of the volume.
if_match: Option<String>For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
Implementations§
Source§impl DeleteVolumeRequest
impl DeleteVolumeRequest
Sourcepub fn new(required: DeleteVolumeRequestRequired) -> Self
pub fn new(required: DeleteVolumeRequestRequired) -> Self
Create a new DeleteVolumeRequest with required fields
Sourcepub fn set_volume_id(self, value: String) -> Self
pub fn set_volume_id(self, value: String) -> Self
Set volume_id
Sourcepub fn set_if_match(self, value: Option<String>) -> Self
pub fn set_if_match(self, value: Option<String>) -> Self
Set if_match
Sourcepub fn with_if_match(self, value: impl Into<String>) -> Self
pub fn with_if_match(self, value: impl Into<String>) -> Self
Set if_match (unwraps Option)
Trait Implementations§
Source§impl Clone for DeleteVolumeRequest
impl Clone for DeleteVolumeRequest
Source§fn clone(&self) -> DeleteVolumeRequest
fn clone(&self) -> DeleteVolumeRequest
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 DeleteVolumeRequest
impl Debug for DeleteVolumeRequest
Source§impl<'de> Deserialize<'de> for DeleteVolumeRequest
impl<'de> Deserialize<'de> for DeleteVolumeRequest
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 DeleteVolumeRequest
impl RefUnwindSafe for DeleteVolumeRequest
impl Send for DeleteVolumeRequest
impl Sync for DeleteVolumeRequest
impl Unpin for DeleteVolumeRequest
impl UnsafeUnpin for DeleteVolumeRequest
impl UnwindSafe for DeleteVolumeRequest
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