[−][src]Struct kube::api::ObjectMeta
Metadata that all persisted resources must have
This parses the relevant fields from [ObjectMeta](https://docs.rs/k8s-openapi/0.4.0/k8s_openapi/apimachinery/pkg/apis/meta/v1/struct.ObjectMeta.html)
Generally maps and vecs are moved out of their Options to avoid unnecessary boxing
because xs.is_none()
is often functionally equivalent to xs.is_empty()
.
Fields
name: String
The unique name (within namespace) for a resource
This output from this from ResourceList calls is the empty string.
namespace: Option<String>
The namespace (when it's namespaced) of the resouce where "" => "default"
labels: BTreeMap<String, String>
annotations: BTreeMap<String, String>
resourceVersion: Option<String>
Kube internal version of the object to keep track of where to watch from
ownerReferences: Vec<OwnerReference>
uid: Option<String>
generation: Option<f64>
Sequence number representing the generation of this resource
generateName: Option<String>
Name prefix to be be used by kube if name is not provided
initializers: Option<Initializers>
List of initializers that have not yet acted on this object
finalizers: Vec<String>
List of finalizers to run before the object is deleted
Trait Implementations
impl Clone for ObjectMeta
[src]
fn clone(&self) -> ObjectMeta
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ObjectMeta
[src]
fn default() -> ObjectMeta
[src]
impl Serialize for ObjectMeta
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ObjectMeta
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnwindSafe for ObjectMeta
impl RefUnwindSafe for ObjectMeta
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,