Trait kube_core::crd::v1::CustomResourceExt [−][src]
pub trait CustomResourceExt { fn crd() -> CustomResourceDefinition; fn api_resource() -> ApiResource; }
Expand description
Extension trait that will be implemented by kube-derive
This trait variant is implemented by default (or when #[kube(apiextensions = "v1")]
)
Required methods
fn crd() -> CustomResourceDefinition
[src]
fn crd() -> CustomResourceDefinition
[src]Helper to generate the CRD including the JsonSchema
This is using the stable v1::CustomResourceDefinitions (present in kubernetes >= 1.16)
fn api_resource() -> ApiResource
[src]
fn api_resource() -> ApiResource
[src]Helper to generate the api information type for use with the dynamic Api