Trait k8_types::Spec[][src]

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

    const NAME_SPACED: bool;

    fn metadata() -> &'static Crd;

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

Kubernetes Spec

Associated Types

Loading content...

Associated Constants

const NAME_SPACED: bool[src]

if true, spec is namespaced

Loading content...

Required methods

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

return uri for single instance

Loading content...

Provided methods

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

fn api_version() -> String[src]

fn kind() -> String[src]

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...