pub struct DeviceStats {
pub timestamp: DateTime<Utc>,
pub summary: Option<StatValue>,
pub stats: Option<StatObject>,
}
Expand description
DeviceStats is the statistics for an individual device
This struct was generated based on the Go types of the official Nomad API.
Fields§
§timestamp: DateTime<Utc>
Timestamp is the time the statistics were collected.
summary: Option<StatValue>
Summary exposes a single summary metric that should be the most informative to users.
stats: Option<StatObject>
Stats contains the verbose statistics for the device.
Trait Implementations§
Source§impl Clone for DeviceStats
impl Clone for DeviceStats
Source§fn clone(&self) -> DeviceStats
fn clone(&self) -> DeviceStats
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 DeviceStats
impl Debug for DeviceStats
Source§impl Default for DeviceStats
impl Default for DeviceStats
Source§fn default() -> DeviceStats
fn default() -> DeviceStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceStats
impl<'de> Deserialize<'de> for DeviceStats
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 DeviceStats
impl PartialEq for DeviceStats
Source§impl Serialize for DeviceStats
impl Serialize for DeviceStats
impl StructuralPartialEq for DeviceStats
Auto Trait Implementations§
impl Freeze for DeviceStats
impl RefUnwindSafe for DeviceStats
impl Send for DeviceStats
impl Sync for DeviceStats
impl Unpin for DeviceStats
impl UnwindSafe for DeviceStats
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