pub struct Object {
pub containers: Option<Vec<Container>>,
pub group: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
pub ns: Option<String>,
}Expand description
Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.
This type is not used in any activity, and only used as part of another schema.
Fields§
§containers: Option<Vec<Container>>Pod containers associated with this finding, if any.
group: Option<String>Kubernetes object group, such as “policy.k8s.io/v1”.
kind: Option<String>Kubernetes object kind, such as “Namespace”.
name: Option<String>Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
ns: Option<String>Kubernetes object namespace. Must be a valid DNS label. Named “ns” to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
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
impl Part for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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