[]Struct fluvio_sc::dispatcher::k8::app::core::metadata::ObjectMeta

pub struct ObjectMeta {
    pub name: String,
    pub namespace: String,
    pub uid: String,
    pub self_link: String,
    pub creation_timestamp: String,
    pub generation: Option<i32>,
    pub resource_version: String,
    pub cluster_name: Option<String>,
    pub deletion_timestamp: Option<String>,
    pub deletion_grace_period_seconds: Option<u32>,
    pub labels: HashMap<String, String, RandomState>,
    pub owner_references: Vec<OwnerReferences, Global>,
    pub annotations: HashMap<String, String, RandomState>,
    pub finalizers: Vec<String, Global>,
}

metadata associated with object when returned here name and namespace must be populated

Fields

name: Stringnamespace: Stringuid: Stringself_link: Stringcreation_timestamp: Stringgeneration: Option<i32>resource_version: Stringcluster_name: Option<String>deletion_timestamp: Option<String>deletion_grace_period_seconds: Option<u32>labels: HashMap<String, String, RandomState>owner_references: Vec<OwnerReferences, Global>annotations: HashMap<String, String, RandomState>finalizers: Vec<String, Global>

Implementations

impl ObjectMeta

pub fn new<S>(name: S, name_space: S) -> ObjectMeta where
    S: Into<String>, 

pub fn set_labels<T>(self, labels: Vec<(T, T), Global>) -> ObjectMeta where
    T: Into<String>, 

provide builder pattern setter

pub fn named<S>(name: S) -> ObjectMeta where
    S: Into<String>, 

create with name and default namespace

pub fn make_owner_reference<S>(&self) -> OwnerReferences where
    S: Spec

create owner references point to this metadata if name or uid doesn't exists return none

pub fn namespace(&self) -> &str

pub fn make_child_input_metadata<S>(&self, childname: String) -> InputObjectMeta where
    S: Spec

create child references that points to this

pub fn as_input(&self) -> InputObjectMeta

pub fn as_item(&self) -> ItemMeta

pub fn as_update(&self) -> UpdateItemMeta

Trait Implementations

impl Clone for ObjectMeta

impl Debug for ObjectMeta

impl Default for ObjectMeta

impl<'de> Deserialize<'de> for ObjectMeta where
    ObjectMeta: Default

impl From<ObjectMeta> for InputObjectMeta

impl From<ObjectMeta> for ItemMeta

impl From<ObjectMeta> for UpdateItemMeta

impl K8Meta for ObjectMeta

impl LabelProvider for ObjectMeta

impl PartialEq<ObjectMeta> for ObjectMeta

impl Serialize for ObjectMeta

impl StructuralPartialEq for ObjectMeta

impl TryFrom<ObjectMeta> for K8MetaItem[src]

type Error = ParseIntError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Erased for T

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]