pub struct ChangeZonesProtectionRequest {
pub delete: Option<bool>,
}Expand description
ChangeZonesProtectionRequest : Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_protection
Fields§
§delete: Option<bool>Prevents the Zone from being deleted.
Implementations§
Source§impl ChangeZonesProtectionRequest
impl ChangeZonesProtectionRequest
Sourcepub fn new() -> ChangeZonesProtectionRequest
pub fn new() -> ChangeZonesProtectionRequest
Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_protection
Trait Implementations§
Source§impl Clone for ChangeZonesProtectionRequest
impl Clone for ChangeZonesProtectionRequest
Source§fn clone(&self) -> ChangeZonesProtectionRequest
fn clone(&self) -> ChangeZonesProtectionRequest
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 ChangeZonesProtectionRequest
impl Debug for ChangeZonesProtectionRequest
Source§impl Default for ChangeZonesProtectionRequest
impl Default for ChangeZonesProtectionRequest
Source§fn default() -> ChangeZonesProtectionRequest
fn default() -> ChangeZonesProtectionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeZonesProtectionRequest
impl<'de> Deserialize<'de> for ChangeZonesProtectionRequest
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 ChangeZonesProtectionRequest
impl PartialEq for ChangeZonesProtectionRequest
Source§fn eq(&self, other: &ChangeZonesProtectionRequest) -> bool
fn eq(&self, other: &ChangeZonesProtectionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangeZonesProtectionRequest
Auto Trait Implementations§
impl Freeze for ChangeZonesProtectionRequest
impl RefUnwindSafe for ChangeZonesProtectionRequest
impl Send for ChangeZonesProtectionRequest
impl Sync for ChangeZonesProtectionRequest
impl Unpin for ChangeZonesProtectionRequest
impl UnwindSafe for ChangeZonesProtectionRequest
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