[][src]Struct k8_obj_metadata::K8Obj

pub struct K8Obj<S> where
    S: Spec
{ pub api_version: String, pub kind: String, pub metadata: ObjectMeta, pub spec: S, pub header: S::Header, pub status: S::Status, }

Fields

api_version: Stringkind: Stringmetadata: ObjectMetaspec: Sheader: S::Headerstatus: S::Status

Implementations

impl<S> K8Obj<S> where
    S: Spec
[src]

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

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

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

impl<S> K8Obj<S> where
    S: Spec
[src]

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

Trait Implementations

impl<S: Clone> Clone for K8Obj<S> where
    S: Spec,
    S::Header: Clone,
    S::Status: Clone
[src]

impl<S: Debug> Debug for K8Obj<S> where
    S: Spec,
    S::Header: Debug,
    S::Status: Debug
[src]

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

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

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

Auto Trait Implementations

impl<S> RefUnwindSafe for K8Obj<S> where
    S: RefUnwindSafe,
    <S as Spec>::Header: RefUnwindSafe,
    <S as Spec>::Status: RefUnwindSafe
[src]

impl<S> Send for K8Obj<S> where
    <S as Spec>::Header: Send,
    <S as Spec>::Status: Send
[src]

impl<S> Sync for K8Obj<S> where
    <S as Spec>::Header: Sync,
    <S as Spec>::Status: Sync
[src]

impl<S> Unpin for K8Obj<S> where
    S: Unpin,
    <S as Spec>::Header: Unpin,
    <S as Spec>::Status: Unpin
[src]

impl<S> UnwindSafe for K8Obj<S> where
    S: UnwindSafe,
    <S as Spec>::Header: UnwindSafe,
    <S as Spec>::Status: UnwindSafe
[src]

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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.