Struct k8_types::K8Obj [−][src]
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
impl<S> K8Obj<S> where
S: Spec, [src]
impl<S> K8Obj<S> where
S: Spec, [src]pub fn new<N>(name: N, spec: S) -> Self where
N: Into<String>, [src]
N: Into<String>,
pub fn set_status(self, status: S::Status) -> Self[src]
pub fn as_status_update(&self, status: S::Status) -> UpdateK8ObjStatus<S>[src]
Trait Implementations
impl<'de, S> Deserialize<'de> for K8Obj<S> where
S: Spec,
S: DeserializeOwned, [src]
impl<'de, S> Deserialize<'de> for K8Obj<S> where
S: Spec,
S: DeserializeOwned, [src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]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,
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,
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,
S: UnwindSafe,
<S as Spec>::Header: UnwindSafe,
<S as Spec>::Status: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,