Struct k8_types::K8SpecObj [−][src]
pub struct K8SpecObj<S, M> where
S: Spec, { pub api_version: String, pub kind: String, pub metadata: M, pub spec: S, pub header: S::Header, }
Expand description
For creating, only need spec
Fields
api_version: Stringkind: Stringmetadata: Mspec: Sheader: S::HeaderImplementations
Trait Implementations
impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M> where
S: Spec,
S: DeserializeOwned,
M: DeserializeOwned, [src]
impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M> where
S: Spec,
S: DeserializeOwned,
M: 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
impl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S> where
S: Spec, [src]
impl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S> where
S: Spec, [src]fn from(update: UpdateK8Obj<S>) -> Self[src]
fn from(update: UpdateK8Obj<S>) -> Self[src]Performs the conversion.
Auto Trait Implementations
impl<S, M> RefUnwindSafe for K8SpecObj<S, M> where
M: RefUnwindSafe,
S: RefUnwindSafe,
<S as Spec>::Header: RefUnwindSafe,
M: RefUnwindSafe,
S: RefUnwindSafe,
<S as Spec>::Header: RefUnwindSafe,
impl<S, M> Send for K8SpecObj<S, M> where
M: Send,
M: Send,
impl<S, M> Sync for K8SpecObj<S, M> where
M: Sync,
M: Sync,
impl<S, M> Unpin for K8SpecObj<S, M> where
M: Unpin,
S: Unpin,
<S as Spec>::Header: Unpin,
M: Unpin,
S: Unpin,
<S as Spec>::Header: Unpin,
impl<S, M> UnwindSafe for K8SpecObj<S, M> where
M: UnwindSafe,
S: UnwindSafe,
<S as Spec>::Header: UnwindSafe,
M: UnwindSafe,
S: UnwindSafe,
<S as Spec>::Header: 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>,