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