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