Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceDefinitionVersion
source · pub struct CustomResourceDefinitionVersion {
pub additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>,
pub deprecated: Option<bool>,
pub deprecation_warning: Option<String>,
pub name: String,
pub schema: Option<CustomResourceValidation>,
pub served: bool,
pub storage: bool,
pub subresources: Option<CustomResourceSubresources>,
}
Expand description
CustomResourceDefinitionVersion describes a version for CRD.
Fields§
§additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>
additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.
deprecated: Option<bool>
deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
deprecation_warning: Option<String>
deprecationWarning overrides the default warning returned to API clients. May only be set when deprecated
is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
name: String
name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at /apis/\<group\>/\<version\>/...
if served
is true.
schema: Option<CustomResourceValidation>
schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.
served: bool
served is a flag enabling/disabling this version from being served via REST APIs
storage: bool
storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
subresources: Option<CustomResourceSubresources>
subresources specify what subresources this version of the defined custom resource have.
Trait Implementations§
source§impl Clone for CustomResourceDefinitionVersion
impl Clone for CustomResourceDefinitionVersion
source§fn clone(&self) -> CustomResourceDefinitionVersion
fn clone(&self) -> CustomResourceDefinitionVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DeepMerge for CustomResourceDefinitionVersion
impl DeepMerge for CustomResourceDefinitionVersion
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for CustomResourceDefinitionVersion
impl Default for CustomResourceDefinitionVersion
source§fn default() -> CustomResourceDefinitionVersion
fn default() -> CustomResourceDefinitionVersion
source§impl<'de> Deserialize<'de> for CustomResourceDefinitionVersion
impl<'de> Deserialize<'de> for CustomResourceDefinitionVersion
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl JsonSchema for CustomResourceDefinitionVersion
impl JsonSchema for CustomResourceDefinitionVersion
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for CustomResourceDefinitionVersion
impl PartialEq for CustomResourceDefinitionVersion
source§fn eq(&self, other: &CustomResourceDefinitionVersion) -> bool
fn eq(&self, other: &CustomResourceDefinitionVersion) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CustomResourceDefinitionVersion
Auto Trait Implementations§
impl Freeze for CustomResourceDefinitionVersion
impl RefUnwindSafe for CustomResourceDefinitionVersion
impl Send for CustomResourceDefinitionVersion
impl Sync for CustomResourceDefinitionVersion
impl Unpin for CustomResourceDefinitionVersion
impl UnwindSafe for CustomResourceDefinitionVersion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)