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: String
§kind: String
§metadata: ObjectMeta
§spec: S
§header: S::Header
§status: S::Status
Implementations§
source§impl<S> K8Obj<S>where
S: Spec,
impl<S> K8Obj<S>where
S: Spec,
pub fn new<N>(name: N, spec: S) -> Self
pub fn set_status(self, status: S::Status) -> Self
pub fn as_status_update(&self, status: S::Status) -> UpdateK8ObjStatus<S>
Trait Implementations§
source§impl<'de, S> Deserialize<'de> for K8Obj<S>where
S: Spec + DeserializeOwned,
impl<'de, S> Deserialize<'de> for K8Obj<S>where
S: Spec + 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> Freeze for K8Obj<S>
impl<S> RefUnwindSafe for K8Obj<S>
impl<S> Send for K8Obj<S>
impl<S> Sync for K8Obj<S>
impl<S> Unpin for K8Obj<S>
impl<S> UnwindSafe for K8Obj<S>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)