pub struct ContainerState {
pub container_id: String,
pub container_name: String,
pub image: String,
pub status: String,
pub running: bool,
pub labels: HashMap<String, String>,
pub created_at: Option<String>,
pub published_ports: HashMap<String, u16>,
pub ip_address: Option<String>,
}Expand description
Jeopardy 与 AWD 共用的检查视图。
Fields§
§container_id: String§container_name: String§image: String§status: String§running: bool§labels: HashMap<String, String>§created_at: Option<String>§published_ports: HashMap<String, u16>Published host ports: container_port -> host_port
ip_address: Option<String>Container IP on its Docker network (default bridge when no custom network).
Trait Implementations§
Source§impl Clone for ContainerState
impl Clone for ContainerState
Source§fn clone(&self) -> ContainerState
fn clone(&self) -> ContainerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContainerState
impl RefUnwindSafe for ContainerState
impl Send for ContainerState
impl Sync for ContainerState
impl Unpin for ContainerState
impl UnsafeUnpin for ContainerState
impl UnwindSafe for ContainerState
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