pub struct ContainerIdentity {
pub id: String,
pub name: String,
pub image: String,
pub started_at: String,
pub user: String,
pub workdir: String,
}Expand description
One container as the engine described it at inspect time. Plain data —
resolving or re-checking it is crate::inspect /
crate::revalidate’s job, never this struct’s.
Fields§
§id: StringThe canonical 64-hex id docker inspect reported.
name: StringThe container’s name, without inspect’s leading /.
image: StringThe image reference the container was created from (Config.Image).
started_at: StringThe incarnation marker (State.StartedAt, RFC 3339): a restart of
the same id changes it, so held results can be told stale cheaply.
user: StringConfig.User; empty means the image default.
workdir: StringConfig.WorkingDir; empty means the image default (“/”).
Trait Implementations§
Source§impl Clone for ContainerIdentity
impl Clone for ContainerIdentity
Source§fn clone(&self) -> ContainerIdentity
fn clone(&self) -> ContainerIdentity
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 ContainerIdentity
impl Debug for ContainerIdentity
Source§impl<'de> Deserialize<'de> for ContainerIdentity
impl<'de> Deserialize<'de> for ContainerIdentity
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
impl Eq for ContainerIdentity
Source§impl PartialEq for ContainerIdentity
impl PartialEq for ContainerIdentity
Source§impl Serialize for ContainerIdentity
impl Serialize for ContainerIdentity
impl StructuralPartialEq for ContainerIdentity
Auto Trait Implementations§
impl Freeze for ContainerIdentity
impl RefUnwindSafe for ContainerIdentity
impl Send for ContainerIdentity
impl Sync for ContainerIdentity
impl Unpin for ContainerIdentity
impl UnsafeUnpin for ContainerIdentity
impl UnwindSafe for ContainerIdentity
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