pub struct NodeInfo {
pub id: String,
pub name: String,
pub role: NodeRole,
pub availability: NodeAvailability,
pub status: NodeStatus,
pub address: String,
pub version: String,
pub containers_running: u32,
pub labels: HashMap<String, String>,
}Expand description
Swarm 节点信息
Fields§
§id: String节点 ID
name: String节点名称
role: NodeRole节点角色
availability: NodeAvailability节点可用性
status: NodeStatus节点状态
address: String节点地址
version: String节点版本
containers_running: u32运行的容器数
labels: HashMap<String, String>节点标签
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
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
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnsafeUnpin for NodeInfo
impl UnwindSafe for NodeInfo
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