[][src]Enum k8s_openapi_codegen_common::swagger20::Type

pub enum Type {
    Any,
    Array {
        items: Box<Schema>,
    },
    Boolean,
    Integer {
        format: IntegerFormat,
    },
    Number {
        format: NumberFormat,
    },
    Object {
        additional_properties: Box<Schema>,
    },
    String {
        format: Option<StringFormat>,
    },
    CustomResourceSubresources(String),
    IntOrString,
    JSONSchemaPropsOrArray(&'static str),
    JSONSchemaPropsOrBool(&'static str),
    JSONSchemaPropsOrStringArray(&'static str),
    Patch,
    WatchEvent(RefPath),
    ListDef {
        metadata: Box<SchemaKind>,
    },
    ListRef {
        items: Box<SchemaKind>,
    },
    CreateOptional(BTreeMap<PropertyName, Schema>),
    DeleteOptional(BTreeMap<PropertyName, Schema>),
    ListOptional(BTreeMap<PropertyName, Schema>),
    PatchOptional(BTreeMap<PropertyName, Schema>),
    ReplaceOptional(BTreeMap<PropertyName, Schema>),
    WatchOptional(BTreeMap<PropertyName, Schema>),
    CreateResponse,
    DeleteResponse,
    ListResponse,
    PatchResponse,
    ReplaceResponse,
    WatchResponse,
}

A type definition.

Variants

Any
Array

Fields of Array

items: Box<Schema>
Boolean
Integer

Fields of Integer

format: IntegerFormat
Number

Fields of Number

format: NumberFormat
Object

Fields of Object

additional_properties: Box<Schema>
String

Fields of String

format: Option<StringFormat>
CustomResourceSubresources(String)
IntOrString
JSONSchemaPropsOrArray(&'static str)
JSONSchemaPropsOrBool(&'static str)
JSONSchemaPropsOrStringArray(&'static str)
Patch
WatchEvent(RefPath)
ListDef

Fields of ListDef

metadata: Box<SchemaKind>
ListRef

Fields of ListRef

items: Box<SchemaKind>
CreateOptional(BTreeMap<PropertyName, Schema>)
DeleteOptional(BTreeMap<PropertyName, Schema>)
ListOptional(BTreeMap<PropertyName, Schema>)
PatchOptional(BTreeMap<PropertyName, Schema>)
ReplaceOptional(BTreeMap<PropertyName, Schema>)
WatchOptional(BTreeMap<PropertyName, Schema>)
CreateResponse
DeleteResponse
ListResponse
PatchResponse
ReplaceResponse
WatchResponse

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl Eq for Type[src]

impl Ord for Type[src]

impl PartialEq<Type> for Type[src]

impl PartialOrd<Type> for Type[src]

impl StructuralEq for Type[src]

impl StructuralPartialEq for Type[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.