pub struct NodeSummary { /* private fields */ }Expand description
Summary of a bare metal node.
Implementations§
Source§impl NodeSummary
impl NodeSummary
Sourcepub fn instance_id(&self) -> &Option<String>
pub fn instance_id(&self) -> &Option<String>
Instance identifier (server ID in case of OpenStack Compute).
Sourcepub fn maintenance(&self) -> bool
pub fn maintenance(&self) -> bool
Whether this node is in maintenance mode.
Sourcepub fn power_state(&self) -> Option<PowerState>
pub fn power_state(&self) -> Option<PowerState>
The current power state if the node (if known).
Sourcepub fn provision_state(&self) -> ProvisionState
pub fn provision_state(&self) -> ProvisionState
The current provision state.
Trait Implementations§
Source§impl Clone for NodeSummary
impl Clone for NodeSummary
Source§fn clone(&self) -> NodeSummary
fn clone(&self) -> NodeSummary
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for NodeSummary
impl !RefUnwindSafe for NodeSummary
impl Send for NodeSummary
impl Sync for NodeSummary
impl Unpin for NodeSummary
impl !UnwindSafe for NodeSummary
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