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§
source§impl 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§
source§impl Clone for MetaItemContext
impl Clone for MetaItemContext
source§fn clone(&self) -> MetaItemContext
fn clone(&self) -> MetaItemContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetaItemContext
impl Debug for MetaItemContext
source§impl Default for MetaItemContext
impl Default for MetaItemContext
source§fn default() -> MetaItemContext
fn default() -> MetaItemContext
Returns the “default value” for a type. Read more
source§impl PartialEq<MetaItemContext> for MetaItemContext
impl PartialEq<MetaItemContext> for MetaItemContext
source§fn 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 ==
.impl Eq for MetaItemContext
impl StructuralEq for MetaItemContext
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§
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