#[non_exhaustive]pub struct Container {
pub name: String,
pub uri: String,
pub image_id: String,
pub labels: Vec<Label>,
pub create_time: Option<Timestamp>,
/* private fields */
}Expand description
Container associated with the finding.
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.name: StringName of the container.
uri: StringContainer image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags.
image_id: StringOptional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest.
labels: Vec<Label>Container labels, as provided by the container runtime.
create_time: Option<Timestamp>The time that the container was created.
Implementations§
Source§impl Container
impl Container
pub fn new() -> Self
Sourcepub fn set_image_id<T: Into<String>>(self, v: T) -> Self
pub fn set_image_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_labels<T, V>(self, v: T) -> Self
pub fn set_labels<T, V>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Container::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Container::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Container::new().set_or_clear_create_time(None::<Timestamp>);Trait Implementations§
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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