pub struct NodeDevice {
pub locality: Option<NodeDeviceLocality>,
pub id: String,
pub healthy: bool,
pub health_description: String,
}
Expand description
NodeDevice is an instance of a particular device.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§locality: Option<NodeDeviceLocality>
Locality stores HW locality information for the node to optionally be used when making placement decisions.
id: String
ID is the ID of the device.
healthy: bool
Healthy captures whether the device is healthy.
health_description: String
HealthDescription is used to provide a human readable description of why the device may be unhealthy.
Implementations§
Source§impl NodeDevice
impl NodeDevice
pub fn builder() -> NodeDeviceBuilder
Trait Implementations§
Source§impl Clone for NodeDevice
impl Clone for NodeDevice
Source§fn clone(&self) -> NodeDevice
fn clone(&self) -> NodeDevice
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 NodeDevice
impl Debug for NodeDevice
Source§impl<'de> Deserialize<'de> for NodeDevice
impl<'de> Deserialize<'de> for NodeDevice
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 NodeDevice
impl PartialEq for NodeDevice
Source§impl Serialize for NodeDevice
impl Serialize for NodeDevice
impl StructuralPartialEq for NodeDevice
Auto Trait Implementations§
impl Freeze for NodeDevice
impl RefUnwindSafe for NodeDevice
impl Send for NodeDevice
impl Sync for NodeDevice
impl Unpin for NodeDevice
impl UnwindSafe for NodeDevice
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