pub trait Metadata: Resource {
type Ty;
// Required methods
fn metadata(&self) -> &Self::Ty;
fn metadata_mut(&mut self) -> &mut Self::Ty;
}
Expand description
A trait applied to all Kubernetes resources that have metadata.
Required Associated Types§
Required Methods§
Sourcefn metadata_mut(&mut self) -> &mut Self::Ty
fn metadata_mut(&mut self) -> &mut Self::Ty
Gets a mutable reference to the metadata of this resource value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.