pub struct ServiceInfo {
pub id: String,
pub name: String,
pub status: ServiceStatus,
pub image: String,
pub replicas: u32,
pub ports: HashMap<u16, u16>,
pub environment: HashMap<String, String>,
pub volumes: Vec<VolumeMount>,
pub created_at: SystemTime,
pub updated_at: SystemTime,
}Expand description
Swarm 服务信息
Fields§
§id: String服务 ID
name: String服务名称
status: ServiceStatus服务状态
image: String镜像名称
replicas: u32副本数
ports: HashMap<u16, u16>端口映射
environment: HashMap<String, String>环境变量
volumes: Vec<VolumeMount>挂载卷
created_at: SystemTime创建时间
updated_at: SystemTime更新时间
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§fn clone(&self) -> ServiceInfo
fn clone(&self) -> ServiceInfo
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 moreSource§impl Debug for ServiceInfo
impl Debug for ServiceInfo
Source§impl<'de> Deserialize<'de> for ServiceInfo
impl<'de> Deserialize<'de> for ServiceInfo
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 ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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