Struct k8_types::store::MetaItemContext
source · [−]pub struct MetaItemContext {
pub item_ctx: Option<ObjectMeta>,
pub parent_ctx: Option<ObjectMeta>,
}Fields
item_ctx: Option<ObjectMeta>parent_ctx: Option<ObjectMeta>Implementations
sourceimpl MetaItemContext
impl MetaItemContext
pub fn with_ctx(self, ctx: ObjectMeta) -> Self
pub fn with_parent_ctx(self, ctx: ObjectMeta) -> Self
pub fn make_parent_ctx(&self) -> Self
Trait Implementations
sourceimpl Clone for MetaItemContext
impl Clone for MetaItemContext
sourcefn clone(&self) -> MetaItemContext
fn clone(&self) -> MetaItemContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MetaItemContext
impl Debug for MetaItemContext
sourceimpl Default for MetaItemContext
impl Default for MetaItemContext
sourcefn default() -> MetaItemContext
fn default() -> MetaItemContext
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MetaItemContext> for MetaItemContext
impl PartialEq<MetaItemContext> for MetaItemContext
sourcefn eq(&self, other: &MetaItemContext) -> bool
fn eq(&self, other: &MetaItemContext) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MetaItemContext) -> bool
fn ne(&self, other: &MetaItemContext) -> bool
This method tests for !=.
impl StructuralPartialEq for MetaItemContext
Auto Trait Implementations
impl RefUnwindSafe for MetaItemContext
impl Send for MetaItemContext
impl Sync for MetaItemContext
impl Unpin for MetaItemContext
impl UnwindSafe for MetaItemContext
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