pub struct GetMetricsForServerResponse {
pub metrics: Box<Metrics>,
}Expand description
GetMetricsForServerResponse : Response to GET https://api.hetzner.cloud/v1/servers/{id}/metrics
Fields§
§metrics: Box<Metrics>Implementations§
Source§impl GetMetricsForServerResponse
impl GetMetricsForServerResponse
Sourcepub fn new(metrics: Metrics) -> GetMetricsForServerResponse
pub fn new(metrics: Metrics) -> GetMetricsForServerResponse
Response to GET https://api.hetzner.cloud/v1/servers/{id}/metrics
Trait Implementations§
Source§impl Clone for GetMetricsForServerResponse
impl Clone for GetMetricsForServerResponse
Source§fn clone(&self) -> GetMetricsForServerResponse
fn clone(&self) -> GetMetricsForServerResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetMetricsForServerResponse
impl Debug for GetMetricsForServerResponse
Source§impl Default for GetMetricsForServerResponse
impl Default for GetMetricsForServerResponse
Source§fn default() -> GetMetricsForServerResponse
fn default() -> GetMetricsForServerResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetMetricsForServerResponse
impl<'de> Deserialize<'de> for GetMetricsForServerResponse
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 GetMetricsForServerResponse
impl PartialEq for GetMetricsForServerResponse
Source§fn eq(&self, other: &GetMetricsForServerResponse) -> bool
fn eq(&self, other: &GetMetricsForServerResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetMetricsForServerResponse
Auto Trait Implementations§
impl Freeze for GetMetricsForServerResponse
impl RefUnwindSafe for GetMetricsForServerResponse
impl Send for GetMetricsForServerResponse
impl Sync for GetMetricsForServerResponse
impl Unpin for GetMetricsForServerResponse
impl UnsafeUnpin for GetMetricsForServerResponse
impl UnwindSafe for GetMetricsForServerResponse
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