pub struct SwarmInfo {
pub id: String,
pub name: Option<String>,
pub managers: u32,
pub workers: u32,
pub services: u32,
pub tasks: u32,
pub version: String,
pub created_at: SystemTime,
}Expand description
Swarm 集群信息
Fields§
§id: String集群 ID
name: Option<String>集群名称
managers: u32管理节点数量
workers: u32工作节点数量
services: u32服务数量
tasks: u32任务数量
version: String集群版本
created_at: SystemTime集群创建时间
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwarmInfo
impl<'de> Deserialize<'de> for SwarmInfo
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 SwarmInfo
impl RefUnwindSafe for SwarmInfo
impl Send for SwarmInfo
impl Sync for SwarmInfo
impl Unpin for SwarmInfo
impl UnsafeUnpin for SwarmInfo
impl UnwindSafe for SwarmInfo
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