pub struct ChangeImageProtectionRequest {
pub delete: Option<bool>,
}
Expand description
ChangeImageProtectionRequest : Request for POST https://api.hetzner.cloud/v1/images/{id}/actions/change_protection
Fields§
§delete: Option<bool>
If true, prevents the snapshot from being deleted
Implementations§
source§impl ChangeImageProtectionRequest
impl ChangeImageProtectionRequest
sourcepub fn new() -> ChangeImageProtectionRequest
pub fn new() -> ChangeImageProtectionRequest
Request for POST https://api.hetzner.cloud/v1/images/{id}/actions/change_protection
Trait Implementations§
source§impl Clone for ChangeImageProtectionRequest
impl Clone for ChangeImageProtectionRequest
source§fn clone(&self) -> ChangeImageProtectionRequest
fn clone(&self) -> ChangeImageProtectionRequest
Returns a copy 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 ChangeImageProtectionRequest
impl Debug for ChangeImageProtectionRequest
source§impl Default for ChangeImageProtectionRequest
impl Default for ChangeImageProtectionRequest
source§fn default() -> ChangeImageProtectionRequest
fn default() -> ChangeImageProtectionRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChangeImageProtectionRequest
impl<'de> Deserialize<'de> for ChangeImageProtectionRequest
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 ChangeImageProtectionRequest
impl PartialEq for ChangeImageProtectionRequest
source§fn eq(&self, other: &ChangeImageProtectionRequest) -> bool
fn eq(&self, other: &ChangeImageProtectionRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChangeImageProtectionRequest
Auto Trait Implementations§
impl RefUnwindSafe for ChangeImageProtectionRequest
impl Send for ChangeImageProtectionRequest
impl Sync for ChangeImageProtectionRequest
impl Unpin for ChangeImageProtectionRequest
impl UnwindSafe for ChangeImageProtectionRequest
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