[][src]Struct k8_obj_metadata::K8SpecObj

pub struct K8SpecObj<S, M> {
    pub api_version: String,
    pub kind: String,
    pub metadata: M,
    pub spec: S,
    pub data: BTreeMap<String, String>,
}

For creating, only need spec

Fields

api_version: Stringkind: Stringmetadata: Mspec: Sdata: BTreeMap<String, String>

Methods

impl<S, M> K8SpecObj<S, M> where
    S: Spec
[src]

pub fn new(spec: S, metadata: M) -> Self where
    M: Default
[src]

Trait Implementations

impl<S: Clone, M: Clone> Clone for K8SpecObj<S, M>[src]

impl<S: Debug, M: Debug> Debug for K8SpecObj<S, M>[src]

impl<S: Default, M: Default> Default for K8SpecObj<S, M>[src]

impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M> where
    S: Deserialize<'de>,
    M: Deserialize<'de>, 
[src]

impl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S> where
    S: Default
[src]

impl<S, M> Serialize for K8SpecObj<S, M> where
    S: Serialize,
    M: Serialize
[src]

Auto Trait Implementations

impl<S, M> RefUnwindSafe for K8SpecObj<S, M> where
    M: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, M> Send for K8SpecObj<S, M> where
    M: Send,
    S: Send

impl<S, M> Sync for K8SpecObj<S, M> where
    M: Sync,
    S: Sync

impl<S, M> Unpin for K8SpecObj<S, M> where
    M: Unpin,
    S: Unpin

impl<S, M> UnwindSafe for K8SpecObj<S, M> where
    M: UnwindSafe,
    S: UnwindSafe

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.