pub trait Spec:
Sized
+ Debug
+ Clone
+ Default
+ Serialize
+ DeserializeOwned
+ Send
+ Sync {
type Status: Status;
type Header: Header;
const NAME_SPACED: bool = true;
// Required method
fn metadata() -> &'static Crd;
// Provided methods
fn label() -> &'static str { ... }
fn api_version() -> String { ... }
fn kind() -> String { ... }
fn make_same(&mut self, _other: &Self) { ... }
}
Expand description
Kubernetes Spec
Required Associated Types§
Provided Associated Constants§
sourceconst NAME_SPACED: bool = true
const NAME_SPACED: bool = true
if true, spec is namespaced
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.