pub struct NodeListStub {Show 18 fields
pub last_drain: Option<DrainMetadata>,
pub datacenter: String,
pub status: String,
pub drain: bool,
pub id: String,
pub attributes: Option<HashMap<String, String>>,
pub version: String,
pub scheduling_eligibility: String,
pub status_description: String,
pub drivers: HashMap<String, DriverInfo>,
pub node_resources: Option<NodeResources>,
pub name: String,
pub node_class: String,
pub reserved_resources: Option<NodeReservedResources>,
pub create_index: u64,
pub modify_index: u64,
pub address: String,
pub node_pool: 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§
§last_drain: Option<DrainMetadata>
§datacenter: String
§status: String
§drain: bool
§id: String
§attributes: Option<HashMap<String, String>>
§version: String
§scheduling_eligibility: String
§status_description: String
§drivers: HashMap<String, DriverInfo>
§node_resources: Option<NodeResources>
§name: String
§node_class: String
§reserved_resources: Option<NodeReservedResources>
§create_index: u64
§modify_index: u64
§address: String
§node_pool: 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