pub struct NodeListStub {Show 18 fields
pub node_pool: String,
pub version: String,
pub modify_index: u64,
pub id: String,
pub attributes: Option<HashMap<String, String>>,
pub node_class: String,
pub drivers: HashMap<String, DriverInfo>,
pub last_drain: Option<DrainMetadata>,
pub create_index: u64,
pub datacenter: String,
pub name: String,
pub scheduling_eligibility: String,
pub status_description: String,
pub node_resources: Option<NodeResources>,
pub reserved_resources: Option<NodeReservedResources>,
pub address: String,
pub drain: bool,
pub status: 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 client.
Fields§
§node_pool: String
§version: String
§modify_index: u64
§id: String
§attributes: Option<HashMap<String, String>>
§node_class: String
§drivers: HashMap<String, DriverInfo>
§last_drain: Option<DrainMetadata>
§create_index: u64
§datacenter: String
§name: String
§scheduling_eligibility: String
§status_description: String
§node_resources: Option<NodeResources>
§reserved_resources: Option<NodeReservedResources>
§address: String
§drain: bool
§status: String
Implementations§
Source§impl NodeListStub
impl NodeListStub
pub fn builder() -> NodeListStubBuilder
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<'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