pub struct ChangeProtectionRequest {
pub delete: Option<bool>,
}Expand description
ChangeProtectionRequest : Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/actions/change_protection
Fields§
§delete: Option<bool>Prevent the Resource from being deleted.
Implementations§
Source§impl ChangeProtectionRequest
impl ChangeProtectionRequest
Sourcepub fn new() -> ChangeProtectionRequest
pub fn new() -> ChangeProtectionRequest
Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/actions/change_protection
Trait Implementations§
Source§impl Clone for ChangeProtectionRequest
impl Clone for ChangeProtectionRequest
Source§fn clone(&self) -> ChangeProtectionRequest
fn clone(&self) -> ChangeProtectionRequest
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 ChangeProtectionRequest
impl Debug for ChangeProtectionRequest
Source§impl Default for ChangeProtectionRequest
impl Default for ChangeProtectionRequest
Source§fn default() -> ChangeProtectionRequest
fn default() -> ChangeProtectionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeProtectionRequest
impl<'de> Deserialize<'de> for ChangeProtectionRequest
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 ChangeProtectionRequest
impl PartialEq for ChangeProtectionRequest
Source§impl Serialize for ChangeProtectionRequest
impl Serialize for ChangeProtectionRequest
impl StructuralPartialEq for ChangeProtectionRequest
Auto Trait Implementations§
impl Freeze for ChangeProtectionRequest
impl RefUnwindSafe for ChangeProtectionRequest
impl Send for ChangeProtectionRequest
impl Sync for ChangeProtectionRequest
impl Unpin for ChangeProtectionRequest
impl UnwindSafe for ChangeProtectionRequest
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