Trait k8s_openapi::Metadata
source · pub trait Metadata: Resource {
type Ty;
fn metadata(&self) -> &<Self as Metadata>::Ty;
fn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty;
}
Expand description
A trait applied to all Kubernetes resources that have metadata.
Required Associated Types§
Required Methods§
sourcefn metadata(&self) -> &<Self as Metadata>::Ty
fn metadata(&self) -> &<Self as Metadata>::Ty
Gets a reference to the metadata of this resource value.
sourcefn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty
Gets a mutable reference to the metadata of this resource value.