#[non_exhaustive]pub struct Pod {
pub ns: String,
pub name: String,
pub labels: Vec<Label>,
pub containers: Vec<Container>,
/* private fields */
}Expand description
A Kubernetes Pod.
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.ns: StringKubernetes Pod namespace.
name: StringKubernetes Pod name.
labels: Vec<Label>Pod labels. For Kubernetes containers, these are applied to the container.
containers: Vec<Container>Pod containers associated with this finding, if any.
Implementations§
Source§impl Pod
impl Pod
pub fn new() -> Self
Sourcepub fn set_labels<T, V>(self, v: T) -> Self
pub fn set_labels<T, V>(self, v: T) -> Self
Sourcepub fn set_containers<T, V>(self, v: T) -> Self
pub fn set_containers<T, V>(self, v: T) -> Self
Sets the value of containers.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::Container;
let x = Pod::new()
.set_containers([
Container::default()/* use setters */,
Container::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for Pod
Auto Trait Implementations§
impl Freeze for Pod
impl RefUnwindSafe for Pod
impl Send for Pod
impl Sync for Pod
impl Unpin for Pod
impl UnwindSafe for Pod
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