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: String§kind: String§metadata: M§spec: S§header: S::HeaderImplementations§
Trait Implementations§
Source§impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M>
impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M>
Source§fn 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, M> Freeze for K8SpecObj<S, M>
impl<S, M> RefUnwindSafe for K8SpecObj<S, M>
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>
impl<S, M> UnwindSafe for K8SpecObj<S, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more