pub struct DeleteSubnetRequest {
pub subnet_id: String,
pub if_match: Option<String>,
}Fields§
§subnet_id: StringSpecify the OCID of the subnet.
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 DeleteSubnetRequest
impl DeleteSubnetRequest
Sourcepub fn new(required: DeleteSubnetRequestRequired) -> Self
pub fn new(required: DeleteSubnetRequestRequired) -> Self
Create a new DeleteSubnetRequest with required fields
Sourcepub fn set_subnet_id(self, value: String) -> Self
pub fn set_subnet_id(self, value: String) -> Self
Set subnet_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 DeleteSubnetRequest
impl Clone for DeleteSubnetRequest
Source§fn clone(&self) -> DeleteSubnetRequest
fn clone(&self) -> DeleteSubnetRequest
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 DeleteSubnetRequest
impl Debug for DeleteSubnetRequest
Source§impl<'de> Deserialize<'de> for DeleteSubnetRequest
impl<'de> Deserialize<'de> for DeleteSubnetRequest
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 DeleteSubnetRequest
impl RefUnwindSafe for DeleteSubnetRequest
impl Send for DeleteSubnetRequest
impl Sync for DeleteSubnetRequest
impl Unpin for DeleteSubnetRequest
impl UnsafeUnpin for DeleteSubnetRequest
impl UnwindSafe for DeleteSubnetRequest
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