pub struct InspectContainerData {Show 40 fields
pub app_armor_profile: Option<String>,
pub args: Option<Vec<String>>,
pub bounding_caps: Option<Vec<String>>,
pub config: Option<Box<InspectContainerConfig>>,
pub conmon_pid_file: Option<String>,
pub created: Option<String>,
pub dependencies: Option<Vec<String>>,
pub driver: Option<String>,
pub effective_caps: Option<Vec<String>>,
pub exec_ids: Option<Vec<String>>,
pub graph_driver: Option<Box<DriverData>>,
pub host_config: Option<Box<InspectContainerHostConfig>>,
pub hostname_path: Option<String>,
pub hosts_path: Option<String>,
pub id: Option<String>,
pub image: Option<String>,
pub image_digest: Option<String>,
pub image_name: Option<String>,
pub is_infra: Option<bool>,
pub is_service: Option<bool>,
pub kube_exit_code_propagation: Option<String>,
pub mount_label: Option<String>,
pub mounts: Option<Vec<InspectMount>>,
pub name: Option<String>,
pub namespace: Option<String>,
pub network_settings: Option<Box<InspectNetworkSettings>>,
pub oci_config_path: Option<String>,
pub oci_runtime: Option<String>,
pub path: Option<String>,
pub pid_file: Option<String>,
pub pod: Option<String>,
pub process_label: Option<String>,
pub resolv_conf_path: Option<String>,
pub restart_count: Option<i32>,
pub rootfs: Option<String>,
pub size_root_fs: Option<i64>,
pub size_rw: Option<i64>,
pub state: Option<Box<InspectContainerState>>,
pub static_dir: Option<String>,
pub lock_number: Option<i32>,
}
Expand description
InspectContainerData : InspectContainerData provides a detailed record of a container’s configuration and state as viewed by Libpod. Large portions of this structure are defined such that the output is compatible with docker inspect
JSON, but additional fields have been added as required to share information not in the original output.
Fields§
§app_armor_profile: Option<String>
§args: Option<Vec<String>>
§bounding_caps: Option<Vec<String>>
§config: Option<Box<InspectContainerConfig>>
§conmon_pid_file: Option<String>
§created: Option<String>
§dependencies: Option<Vec<String>>
§driver: Option<String>
§effective_caps: Option<Vec<String>>
§exec_ids: Option<Vec<String>>
§graph_driver: Option<Box<DriverData>>
§host_config: Option<Box<InspectContainerHostConfig>>
§hostname_path: Option<String>
§hosts_path: Option<String>
§id: Option<String>
§image: Option<String>
§image_digest: Option<String>
§image_name: Option<String>
§is_infra: Option<bool>
§is_service: Option<bool>
§kube_exit_code_propagation: Option<String>
§mount_label: Option<String>
§mounts: Option<Vec<InspectMount>>
§name: Option<String>
§namespace: Option<String>
§network_settings: Option<Box<InspectNetworkSettings>>
§oci_config_path: Option<String>
§oci_runtime: Option<String>
§path: Option<String>
§pid_file: Option<String>
§pod: Option<String>
§process_label: Option<String>
§resolv_conf_path: Option<String>
§restart_count: Option<i32>
§rootfs: Option<String>
§size_root_fs: Option<i64>
§size_rw: Option<i64>
§state: Option<Box<InspectContainerState>>
§static_dir: Option<String>
§lock_number: Option<i32>
Implementations§
Source§impl InspectContainerData
impl InspectContainerData
Sourcepub fn new() -> InspectContainerData
pub fn new() -> InspectContainerData
InspectContainerData provides a detailed record of a container’s configuration and state as viewed by Libpod. Large portions of this structure are defined such that the output is compatible with docker inspect
JSON, but additional fields have been added as required to share information not in the original output.
Trait Implementations§
Source§impl Clone for InspectContainerData
impl Clone for InspectContainerData
Source§fn clone(&self) -> InspectContainerData
fn clone(&self) -> InspectContainerData
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 InspectContainerData
impl Debug for InspectContainerData
Source§impl Default for InspectContainerData
impl Default for InspectContainerData
Source§fn default() -> InspectContainerData
fn default() -> InspectContainerData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InspectContainerData
impl<'de> Deserialize<'de> for InspectContainerData
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 InspectContainerData
impl PartialEq for InspectContainerData
Source§impl Serialize for InspectContainerData
impl Serialize for InspectContainerData
impl StructuralPartialEq for InspectContainerData
Auto Trait Implementations§
impl Freeze for InspectContainerData
impl RefUnwindSafe for InspectContainerData
impl Send for InspectContainerData
impl Sync for InspectContainerData
impl Unpin for InspectContainerData
impl UnwindSafe for InspectContainerData
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