pub struct StatObject {
pub nested: HashMap<String, StatObject>,
pub attributes: HashMap<String, StatValue>,
}
Expand description
StatObject is a collection of statistics either exposed at the top level or via nested StatObjects.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§nested: HashMap<String, StatObject>
Nested is a mapping of object name to a nested stats object.
attributes: HashMap<String, StatValue>
Attributes is a mapping of statistic name to its value.
Trait Implementations§
Source§impl Clone for StatObject
impl Clone for StatObject
Source§fn clone(&self) -> StatObject
fn clone(&self) -> StatObject
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 StatObject
impl Debug for StatObject
Source§impl Default for StatObject
impl Default for StatObject
Source§fn default() -> StatObject
fn default() -> StatObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatObject
impl<'de> Deserialize<'de> for StatObject
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 StatObject
impl PartialEq for StatObject
Source§impl Serialize for StatObject
impl Serialize for StatObject
impl StructuralPartialEq for StatObject
Auto Trait Implementations§
impl Freeze for StatObject
impl RefUnwindSafe for StatObject
impl Send for StatObject
impl Sync for StatObject
impl Unpin for StatObject
impl UnwindSafe for StatObject
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