pub struct NodeDeviceResource {
pub instances: Vec<NodeDevice>,
pub attributes: HashMap<String, Attribute>,
pub vendor: String,
pub type: String,
pub name: String,
}
Expand description
NodeDeviceResource captures a set of devices sharing a common vendor/type/device_name tuple.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§instances: Vec<NodeDevice>
Instances are list of the devices matching the vendor/type/name
attributes: HashMap<String, Attribute>
§vendor: String
Vendor specifies the vendor of device
type: String
Type specifies the type of the device
name: String
Name specifies the specific model of the device
Trait Implementations§
Source§impl Clone for NodeDeviceResource
impl Clone for NodeDeviceResource
Source§fn clone(&self) -> NodeDeviceResource
fn clone(&self) -> NodeDeviceResource
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 NodeDeviceResource
impl Debug for NodeDeviceResource
Source§impl Default for NodeDeviceResource
impl Default for NodeDeviceResource
Source§fn default() -> NodeDeviceResource
fn default() -> NodeDeviceResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeDeviceResource
impl<'de> Deserialize<'de> for NodeDeviceResource
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 NodeDeviceResource
impl PartialEq for NodeDeviceResource
Source§impl Serialize for NodeDeviceResource
impl Serialize for NodeDeviceResource
impl StructuralPartialEq for NodeDeviceResource
Auto Trait Implementations§
impl Freeze for NodeDeviceResource
impl RefUnwindSafe for NodeDeviceResource
impl Send for NodeDeviceResource
impl Sync for NodeDeviceResource
impl Unpin for NodeDeviceResource
impl UnwindSafe for NodeDeviceResource
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