pub struct ChangeVolumeProtectionRequest {
pub delete: Option<bool>,
}Expand description
ChangeVolumeProtectionRequest : Request for POST https://api.hetzner.cloud/v1/volumes/{id}/actions/change_protection
Fields§
§delete: Option<bool>If true, prevents the Volume from being deleted.
Implementations§
Source§impl ChangeVolumeProtectionRequest
impl ChangeVolumeProtectionRequest
Sourcepub fn new() -> ChangeVolumeProtectionRequest
pub fn new() -> ChangeVolumeProtectionRequest
Request for POST https://api.hetzner.cloud/v1/volumes/{id}/actions/change_protection
Trait Implementations§
Source§impl Clone for ChangeVolumeProtectionRequest
impl Clone for ChangeVolumeProtectionRequest
Source§fn clone(&self) -> ChangeVolumeProtectionRequest
fn clone(&self) -> ChangeVolumeProtectionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ChangeVolumeProtectionRequest
impl Default for ChangeVolumeProtectionRequest
Source§fn default() -> ChangeVolumeProtectionRequest
fn default() -> ChangeVolumeProtectionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeVolumeProtectionRequest
impl<'de> Deserialize<'de> for ChangeVolumeProtectionRequest
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
Source§impl PartialEq for ChangeVolumeProtectionRequest
impl PartialEq for ChangeVolumeProtectionRequest
Source§fn eq(&self, other: &ChangeVolumeProtectionRequest) -> bool
fn eq(&self, other: &ChangeVolumeProtectionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangeVolumeProtectionRequest
Auto Trait Implementations§
impl Freeze for ChangeVolumeProtectionRequest
impl RefUnwindSafe for ChangeVolumeProtectionRequest
impl Send for ChangeVolumeProtectionRequest
impl Sync for ChangeVolumeProtectionRequest
impl Unpin for ChangeVolumeProtectionRequest
impl UnsafeUnpin for ChangeVolumeProtectionRequest
impl UnwindSafe for ChangeVolumeProtectionRequest
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