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