pub struct NodeListStub {Show 18 fields
pub drivers: HashMap<String, DriverInfo>,
pub node_resources: Option<NodeResources>,
pub last_drain: Option<DrainMetadata>,
pub create_index: u64,
pub modify_index: u64,
pub id: String,
pub node_class: String,
pub version: String,
pub scheduling_eligibility: String,
pub status_description: String,
pub name: String,
pub node_pool: String,
pub drain: bool,
pub reserved_resources: Option<NodeReservedResources>,
pub datacenter: String,
pub attributes: Option<HashMap<String, String>>,
pub status: String,
pub address: String,
}
Expand description
NodeListStub is a subset of information returned during node list operations.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§drivers: HashMap<String, DriverInfo>
§node_resources: Option<NodeResources>
§last_drain: Option<DrainMetadata>
§create_index: u64
§modify_index: u64
§id: String
§node_class: String
§version: String
§scheduling_eligibility: String
§status_description: String
§name: String
§node_pool: String
§drain: bool
§reserved_resources: Option<NodeReservedResources>
§datacenter: String
§attributes: Option<HashMap<String, String>>
§status: String
§address: String
Trait Implementations§
Source§impl Clone for NodeListStub
impl Clone for NodeListStub
Source§fn clone(&self) -> NodeListStub
fn clone(&self) -> NodeListStub
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 NodeListStub
impl Debug for NodeListStub
Source§impl Default for NodeListStub
impl Default for NodeListStub
Source§fn default() -> NodeListStub
fn default() -> NodeListStub
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeListStub
impl<'de> Deserialize<'de> for NodeListStub
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 NodeListStub
impl PartialEq for NodeListStub
Source§impl Serialize for NodeListStub
impl Serialize for NodeListStub
impl StructuralPartialEq for NodeListStub
Auto Trait Implementations§
impl Freeze for NodeListStub
impl RefUnwindSafe for NodeListStub
impl Send for NodeListStub
impl Sync for NodeListStub
impl Unpin for NodeListStub
impl UnwindSafe for NodeListStub
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