[][src]Struct kube::api::ObjectMeta

pub struct ObjectMeta {
    pub name: String,
    pub namespace: Option<String>,
    pub labels: BTreeMap<String, String>,
    pub annotations: BTreeMap<String, String>,
    pub resourceVersion: Option<String>,
    pub ownerReferences: Vec<OwnerReference>,
    pub uid: Option<String>,
    pub generation: Option<f64>,
    pub generateName: Option<String>,
    pub initializers: Option<Initializers>,
    pub finalizers: Vec<String>,
}

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]

impl Default for ObjectMeta[src]

impl Serialize for ObjectMeta[src]

impl<'de> Deserialize<'de> for ObjectMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err