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::Header
Implementations§
Trait Implementations§
source§impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M>where
S: Spec + DeserializeOwned,
M: DeserializeOwned,
impl<'de, S, M> Deserialize<'de> for K8SpecObj<S, M>where S: Spec + DeserializeOwned, M: DeserializeOwned,
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> 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§
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