Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::CustomResourceDefinitionSpec[][src]

pub struct CustomResourceDefinitionSpec {
    pub additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>,
    pub conversion: Option<CustomResourceConversion>,
    pub group: String,
    pub names: CustomResourceDefinitionNames,
    pub scope: String,
    pub subresources: Option<CustomResourceSubresources>,
    pub validation: Option<CustomResourceValidation>,
    pub version: Option<String>,
    pub versions: Option<Vec<CustomResourceDefinitionVersion>>,
}
Expand description

CustomResourceDefinitionSpec describes how a user wants their resource to appear

Fields

additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>

AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive.

conversion: Option<CustomResourceConversion>

conversion defines conversion settings for the CRD.

group: String

Group is the group this resource belongs in

names: CustomResourceDefinitionNames

Names are the names used to describe this custom resource

scope: String

Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced

subresources: Option<CustomResourceSubresources>

Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive.

validation: Option<CustomResourceValidation>

Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive.

version: Option<String>

Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use Versions.

versions: Option<Vec<CustomResourceDefinitionVersion>>

Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is “kube-like”, it will sort above non “kube-like” version strings, which are ordered lexicographically. “Kube-like” versions start with a “v”, then are followed by a number (the major version), then optionally the string “alpha” or “beta” and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

Trait Implementations

impl Clone for CustomResourceDefinitionSpec[src]

fn clone(&self) -> CustomResourceDefinitionSpec[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for CustomResourceDefinitionSpec[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for CustomResourceDefinitionSpec[src]

fn default() -> CustomResourceDefinitionSpec[src]

Returns the “default value” for a type. Read more

impl<'de> Deserialize<'de> for CustomResourceDefinitionSpec[src]

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<CustomResourceDefinitionSpec> for CustomResourceDefinitionSpec[src]

fn eq(&self, other: &CustomResourceDefinitionSpec) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &CustomResourceDefinitionSpec) -> bool[src]

This method tests for !=.

impl Serialize for CustomResourceDefinitionSpec[src]

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for CustomResourceDefinitionSpec[src]

Auto Trait Implementations

impl RefUnwindSafe for CustomResourceDefinitionSpec

impl Send for CustomResourceDefinitionSpec

impl Sync for CustomResourceDefinitionSpec

impl Unpin for CustomResourceDefinitionSpec

impl UnwindSafe for CustomResourceDefinitionSpec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]