pub struct DockerPsEntry {
pub name: String,
pub compose_project: Option<String>,
}Expand description
One docker ps --filter publish= row, reduced to attribution: the
container’s (first) name and its compose project label, when it has
one. docker ps JSON differs from compose ps JSON (Names
plural, Labels sometimes a "k=v,k=v" string instead of a map) —
both shapes are tolerated and fixture-pinned.
Fields§
§name: StringContainer name.
compose_project: Option<String>com.docker.compose.project label, when present.
Trait Implementations§
Source§impl Clone for DockerPsEntry
impl Clone for DockerPsEntry
Source§fn clone(&self) -> DockerPsEntry
fn clone(&self) -> DockerPsEntry
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 DockerPsEntry
impl Debug for DockerPsEntry
Source§impl PartialEq for DockerPsEntry
impl PartialEq for DockerPsEntry
impl StructuralPartialEq for DockerPsEntry
Auto Trait Implementations§
impl Freeze for DockerPsEntry
impl RefUnwindSafe for DockerPsEntry
impl Send for DockerPsEntry
impl Sync for DockerPsEntry
impl Unpin for DockerPsEntry
impl UnsafeUnpin for DockerPsEntry
impl UnwindSafe for DockerPsEntry
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