pub struct ContainerStatus {
pub in_container: bool,
pub container_id: Option<String>,
pub image: Option<String>,
pub docker_available: bool,
}Expand description
Container/Docker status
Fieldsยง
ยงin_container: boolWhether running inside a Docker container
container_id: Option<String>Container ID (if in container)
image: Option<String>Container image name
docker_available: boolWhether Docker is available on host
Trait Implementationsยง
Sourceยงimpl Clone for ContainerStatus
impl Clone for ContainerStatus
Sourceยงfn clone(&self) -> ContainerStatus
fn clone(&self) -> ContainerStatus
Returns a duplicate of the value. Read more
1.0.0 ยท 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 ContainerStatus
impl Debug for ContainerStatus
Sourceยงimpl<'de> Deserialize<'de> for ContainerStatus
impl<'de> Deserialize<'de> for ContainerStatus
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 ContainerStatus
impl RefUnwindSafe for ContainerStatus
impl Send for ContainerStatus
impl Sync for ContainerStatus
impl Unpin for ContainerStatus
impl UnsafeUnpin for ContainerStatus
impl UnwindSafe for ContainerStatus
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