[−][src]Trait kube::api::Meta
An accessor trait for Metadata
This for a subset of Kubernetes type that do not end in List These types, using ObjectMeta, SHOULD all have required properties:
- .metadata
- .metadata.name And these optional properties:
- .metadata.namespace
- .metadata.resource_version
This avoids a bunch of the unnecessary unwrap mechanics for apps
Required methods
fn meta(&self) -> &ObjectMeta
Metadata that all persisted resources must have
fn name(&self) -> String
The name of the resource
fn namespace(&self) -> Option<String>
The namespace the resource is in
fn resource_ver(&self) -> Option<String>
Tthe resource version
Implementors
impl<K> Meta for K where
K: Metadata<Ty = ObjectMeta>,
[src]
K: Metadata<Ty = ObjectMeta>,
Implement accessor trait for any ObjectMeta-using Kubernetes Resource