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
sourceimpl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M> where
S: Spec,
S: DeserializeOwned,
M: DeserializeOwned,
impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M> where
S: Spec,
S: DeserializeOwned,
M: 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
sourceimpl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S> where
S: Spec,
impl<S> From<K8SpecObj<S, ItemMeta>> for InputK8Obj<S> where
S: Spec,
sourcefn from(update: UpdateK8Obj<S>) -> Self
fn from(update: UpdateK8Obj<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<S, M> RefUnwindSafe for K8SpecObj<S, M> where
M: RefUnwindSafe,
S: RefUnwindSafe,
<S as Spec>::Header: RefUnwindSafe,
impl<S, M> Send for K8SpecObj<S, M> where
M: Send,
impl<S, M> Sync for K8SpecObj<S, M> where
M: Sync,
impl<S, M> Unpin for K8SpecObj<S, M> where
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,
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