Type Alias k8_types::InputK8Obj

source ·
pub type InputK8Obj<S> = K8SpecObj<S, InputObjectMeta>;

Aliased Type§

struct InputK8Obj<S> {
    pub api_version: String,
    pub kind: String,
    pub metadata: InputObjectMeta,
    pub spec: S,
    pub header: <S as Spec>::Header,
}

Fields§

§api_version: String§kind: String§metadata: InputObjectMeta§spec: S§header: <S as Spec>::Header

Implementations§

source§

impl<S, M> K8SpecObj<S, M>where S: Spec,

source

pub fn new(spec: S, metadata: M) -> Selfwhere M: Default,

Trait Implementations§

source§

impl<S, M: Clone> Clone for K8SpecObj<S, M>where S: Spec + Clone, S::Header: Clone,

source§

fn clone(&self) -> K8SpecObj<S, M>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<S, M: Debug> Debug for K8SpecObj<S, M>where S: Spec + Debug, S::Header: Debug,

source§

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

Formats the value using the given formatter. Read more
source§

impl<S, M: Default> Default for K8SpecObj<S, M>where S: Spec + Default, S::Header: Default,

source§

fn default() -> K8SpecObj<S, M>

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

impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M>where S: Spec + DeserializeOwned, M: DeserializeOwned,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S>where S: Spec,

source§

fn from(update: UpdateK8Obj<S>) -> Self

Converts to this type from the input type.
source§

impl<S, M> Serialize for K8SpecObj<S, M>where S: Spec + Serialize, M: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more