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