pub struct ContainerInspect {
pub id: String,
pub name: String,
pub image: String,
pub created: String,
pub state: ContainerState,
pub config: ContainerConfig,
pub host_config: HostConfig,
pub network_settings: NetworkSettings,
pub mounts: Vec<MountPoint>,
}Expand description
Container inspect response subset.
Fields§
§id: StringContainer identifier.
name: StringContainer name (leading slash included).
image: StringImage ID.
created: StringCreation timestamp, RFC 3339 in UTC.
Docker formats this with Go’s RFC3339Nano, which strips trailing zeros from the fractional seconds, so the field is variable width and must be parsed before comparing — byte order can invert real order.
state: ContainerStateContainer state.
config: ContainerConfigContainer config.
host_config: HostConfigHost config.
network_settings: NetworkSettingsNetwork settings.
mounts: Vec<MountPoint>Mounts.
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
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