[−][src]Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceDefinitionVersion
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
impl Clone for CustomResourceDefinitionVersion
[src]
pub fn clone(&self) -> CustomResourceDefinitionVersion
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CustomResourceDefinitionVersion
[src]
impl Default for CustomResourceDefinitionVersion
[src]
pub fn default() -> CustomResourceDefinitionVersion
[src]
impl<'de> Deserialize<'de> for CustomResourceDefinitionVersion
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<CustomResourceDefinitionVersion> for CustomResourceDefinitionVersion
[src]
pub fn eq(&self, other: &CustomResourceDefinitionVersion) -> bool
[src]
pub fn ne(&self, other: &CustomResourceDefinitionVersion) -> bool
[src]
impl Serialize for CustomResourceDefinitionVersion
[src]
impl StructuralPartialEq for CustomResourceDefinitionVersion
[src]
Auto Trait Implementations
impl RefUnwindSafe for CustomResourceDefinitionVersion
[src]
impl Send for CustomResourceDefinitionVersion
[src]
impl Sync for CustomResourceDefinitionVersion
[src]
impl Unpin for CustomResourceDefinitionVersion
[src]
impl UnwindSafe for CustomResourceDefinitionVersion
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,