#[non_exhaustive]pub struct ContainerAttributes {
pub container_id: Option<String>,
pub created_at: Option<String>,
pub host: Option<String>,
pub image_digest: Option<Option<String>>,
pub image_name: Option<String>,
pub image_tags: Option<Option<Vec<String>>>,
pub name: Option<String>,
pub started_at: Option<String>,
pub state: Option<String>,
pub tags: Option<Vec<String>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes for a container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.container_id: Option<String>
The ID of the container.
created_at: Option<String>
Time the container was created.
host: Option<String>
Hostname of the host running the container.
image_digest: Option<Option<String>>
Digest of the compressed image manifest.
image_name: Option<String>
Name of the associated container image.
List of image tags associated with the container image.
name: Option<String>
Name of the container.
started_at: Option<String>
Time the container was started.
state: Option<String>
State of the container. This depends on the container runtime.
List of tags associated with the container.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl ContainerAttributes
impl ContainerAttributes
pub fn new() -> ContainerAttributes
pub fn container_id(self, value: String) -> Self
pub fn created_at(self, value: String) -> Self
pub fn host(self, value: String) -> Self
pub fn image_digest(self, value: Option<String>) -> Self
pub fn image_name(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn started_at(self, value: String) -> Self
pub fn state(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ContainerAttributes
impl Clone for ContainerAttributes
Source§fn clone(&self) -> ContainerAttributes
fn clone(&self) -> ContainerAttributes
Returns a copy 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 ContainerAttributes
impl Debug for ContainerAttributes
Source§impl Default for ContainerAttributes
impl Default for ContainerAttributes
Source§impl<'de> Deserialize<'de> for ContainerAttributes
impl<'de> Deserialize<'de> for ContainerAttributes
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 ContainerAttributes
impl PartialEq for ContainerAttributes
Source§impl Serialize for ContainerAttributes
impl Serialize for ContainerAttributes
impl StructuralPartialEq for ContainerAttributes
Auto Trait Implementations§
impl Freeze for ContainerAttributes
impl RefUnwindSafe for ContainerAttributes
impl Send for ContainerAttributes
impl Sync for ContainerAttributes
impl Unpin for ContainerAttributes
impl UnwindSafe for ContainerAttributes
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