pub struct ContainerInspect {Show 13 fields
pub host: HostId,
pub topology_revision: TopologyRevision,
pub id: Option<String>,
pub name: Option<String>,
pub created: Option<String>,
pub path: Option<String>,
pub args: Vec<String>,
pub image: Option<String>,
pub state: ContainerState,
pub pid: Option<i64>,
pub exit_code: Option<i64>,
pub restart_count: Option<i64>,
pub labels: BTreeMap<String, String>,
}Expand description
Selected neutral container inspection fields.
Fields§
§host: HostIdTarget host.
topology_revision: TopologyRevisionExact topology revision.
id: Option<String>Container ID.
name: Option<String>Container name.
created: Option<String>Creation timestamp text reported by Docker.
path: Option<String>Executable path.
args: Vec<String>Process arguments.
image: Option<String>Image content ID.
state: ContainerStateCurrent state.
pid: Option<i64>Process ID when running.
exit_code: Option<i64>Exit code when reported.
restart_count: Option<i64>Restart count.
labels: BTreeMap<String, String>Config labels.
Trait Implementations§
Source§impl Clone for ContainerInspect
impl Clone for ContainerInspect
Source§fn clone(&self) -> ContainerInspect
fn clone(&self) -> ContainerInspect
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 moreSource§impl Debug for ContainerInspect
impl Debug for ContainerInspect
Source§impl<'de> Deserialize<'de> for ContainerInspect
impl<'de> Deserialize<'de> for ContainerInspect
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
Source§impl PartialEq for ContainerInspect
impl PartialEq for ContainerInspect
Source§fn eq(&self, other: &ContainerInspect) -> bool
fn eq(&self, other: &ContainerInspect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerInspect
impl Serialize for ContainerInspect
impl Eq for ContainerInspect
impl StructuralPartialEq for ContainerInspect
Auto Trait Implementations§
impl Freeze for ContainerInspect
impl RefUnwindSafe for ContainerInspect
impl Send for ContainerInspect
impl Sync for ContainerInspect
impl Unpin for ContainerInspect
impl UnsafeUnpin for ContainerInspect
impl UnwindSafe for ContainerInspect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.