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::StatusImplementations
sourceimpl<S> K8Obj<S> where
S: Spec,
impl<S> K8Obj<S> where
S: Spec,
pub fn new<N>(name: N, spec: S) -> Self where
N: Into<String>,
pub fn set_status(self, status: S::Status) -> Self
pub fn as_status_update(&self, status: S::Status) -> UpdateK8ObjStatus<S>
sourceimpl<S> K8Obj<S> where
S: Spec,
impl<S> K8Obj<S> where
S: Spec,
pub fn as_input(&self) -> InputK8Obj<S>
pub fn as_update(&self) -> K8SpecObj<S, UpdateItemMeta>
Trait Implementations
sourceimpl<'de, S> Deserialize<'de> for K8Obj<S> where
S: Spec,
S: DeserializeOwned,
impl<'de, S> Deserialize<'de> for K8Obj<S> where
S: Spec,
S: DeserializeOwned,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for K8Obj<S> where
S: RefUnwindSafe,
<S as Spec>::Header: RefUnwindSafe,
<S as Spec>::Status: RefUnwindSafe,
impl<S> Send for K8Obj<S>
impl<S> Sync for K8Obj<S>
impl<S> Unpin for K8Obj<S> where
S: Unpin,
<S as Spec>::Header: Unpin,
<S as Spec>::Status: Unpin,
impl<S> UnwindSafe for K8Obj<S> where
S: UnwindSafe,
<S as Spec>::Header: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more