[][src]Struct k8_metadata_core::metadata::K8Obj

pub struct K8Obj<S, P> {
    pub api_version: String,
    pub kind: String,
    pub metadata: ObjectMeta,
    pub spec: S,
    pub status: Option<P>,
    pub data: Option<BTreeMap<String, String>>,
}

Fields

api_version: Stringkind: Stringmetadata: ObjectMetaspec: Sstatus: Option<P>data: Option<BTreeMap<String, String>>

Methods

impl<S> K8Obj<S, S::Status> where
    S: Spec + Default,
    S::Status: Default
[src]

pub fn new<N>(name: N, spec: S) -> Self where
    N: Into<String>, 
[src]

pub fn set_status(self, status: S::Status) -> Self[src]

pub fn as_status_update(
    &self,
    status: S::Status
) -> UpdateK8ObjStatus<S, S::Status>
[src]

impl<S> K8Obj<S, S::Status> where
    S: Spec + Default + Clone
[src]

pub fn as_input(&self) -> InputK8Obj<S>[src]

Trait Implementations

impl<S: Clone, P: Clone> Clone for K8Obj<S, P>[src]

impl<S: Debug, P: Debug> Debug for K8Obj<S, P>[src]

impl<S: Default, P: Default> Default for K8Obj<S, P>[src]

impl<'de, S, P> Deserialize<'de> for K8Obj<S, P> where
    S: Deserialize<'de>,
    P: Deserialize<'de>, 
[src]

impl<S, P> Serialize for K8Obj<S, P> where
    S: Serialize,
    P: Serialize
[src]

Auto Trait Implementations

impl<S, P> RefUnwindSafe for K8Obj<S, P> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, P> Send for K8Obj<S, P> where
    P: Send,
    S: Send

impl<S, P> Sync for K8Obj<S, P> where
    P: Sync,
    S: Sync

impl<S, P> Unpin for K8Obj<S, P> where
    P: Unpin,
    S: Unpin

impl<S, P> UnwindSafe for K8Obj<S, P> where
    P: 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.