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