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