pub struct K8sMetadata {
pub name: Option<String>,
pub namespace: Option<String>,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
}Expand description
Kubernetes metadata — equivalent of Python K8sMetadata with extra=“forbid”
Fields§
§name: Option<String>§namespace: Option<String>§labels: HashMap<String, String>§annotations: HashMap<String, String>Trait Implementations§
Source§impl Clone for K8sMetadata
impl Clone for K8sMetadata
Source§fn clone(&self) -> K8sMetadata
fn clone(&self) -> K8sMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for K8sMetadata
impl Debug for K8sMetadata
Source§impl<'de> Deserialize<'de> for K8sMetadata
impl<'de> Deserialize<'de> for K8sMetadata
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
Auto Trait Implementations§
impl Freeze for K8sMetadata
impl RefUnwindSafe for K8sMetadata
impl Send for K8sMetadata
impl Sync for K8sMetadata
impl Unpin for K8sMetadata
impl UnsafeUnpin for K8sMetadata
impl UnwindSafe for K8sMetadata
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