[][src]Trait k8_obj_metadata::Spec

pub trait Spec: Sized + Debug + Clone + Default + Serialize + DeserializeOwned + Send + Sync {
    type Status: Status;
    type Header: Header;

    pub const NAME_SPACED: bool;

    pub fn metadata() -> &'static Crd;

    pub fn label() -> &'static str { ... }
pub fn api_version() -> String { ... }
pub fn kind() -> String { ... }
pub fn make_same(&mut self, _other: &Self) { ... } }

Kubernetes Spec

Associated Types

Loading content...

Associated Constants

pub const NAME_SPACED: bool[src]

if true, spec is namespaced

Loading content...

Required methods

pub fn metadata() -> &'static Crd[src]

return uri for single instance

Loading content...

Provided methods

pub fn label() -> &'static str[src]

pub fn api_version() -> String[src]

pub fn kind() -> String[src]

pub fn make_same(&mut self, _other: &Self)[src]

in case of applying, we have some fields that are generated or override. So need to special logic to reset them so we can do proper comparison

Loading content...

Implementors

Loading content...