[−][src]Struct k8_obj_metadata::store::MetaItem
Metadata object. Used to be KVObject int sc-core
Fields
spec: S
status: S::Status
key: S::Key
ctx: MetaItemContext
Methods
impl<S> MetaItem<S> where
S: StoreSpec,
[src]
S: StoreSpec,
pub fn new<J>(key: J, spec: S, status: S::Status, ctx: MetaItemContext) -> Self where
J: Into<S::Key>,
[src]
J: Into<S::Key>,
pub fn with_ctx(self, ctx: MetaItemContext) -> Self
[src]
pub fn key(&self) -> &S::Key
[src]
pub fn key_owned(&self) -> S::Key
[src]
pub fn my_key(self) -> S::Key
[src]
pub fn spec(&self) -> &S
[src]
pub fn status(&self) -> &S::Status
[src]
pub fn set_status(&mut self, status: S::Status)
[src]
pub fn ctx(&self) -> &MetaItemContext
[src]
pub fn set_ctx(&mut self, ctx: MetaItemContext)
[src]
pub fn parts(self) -> (S::Key, S, MetaItemContext)
[src]
pub fn is_owned(&self, uid: &str) -> bool
[src]
pub fn with_spec<J>(key: J, spec: S) -> Self where
J: Into<S::Key>,
[src]
J: Into<S::Key>,
Trait Implementations
impl<S: Clone> Clone for MetaItem<S> where
S: StoreSpec,
S::Status: Clone,
S::Key: Clone,
[src]
S: StoreSpec,
S::Status: Clone,
S::Key: Clone,
impl<S: Debug> Debug for MetaItem<S> where
S: StoreSpec,
S::Status: Debug,
S::Key: Debug,
[src]
S: StoreSpec,
S::Status: Debug,
S::Key: Debug,
impl<S> Display for MetaItem<S> where
S: StoreSpec,
S::Key: Display,
[src]
S: StoreSpec,
S::Key: Display,
impl<S> Into<(<S as StoreSpec>::Key, S, <S as StoreSpec>::Status)> for MetaItem<S> where
S: StoreSpec,
[src]
S: StoreSpec,
impl<S: PartialEq> PartialEq<MetaItem<S>> for MetaItem<S> where
S: StoreSpec,
S::Status: PartialEq,
S::Key: PartialEq,
[src]
S: StoreSpec,
S::Status: PartialEq,
S::Key: PartialEq,
impl<S> StructuralPartialEq for MetaItem<S> where
S: StoreSpec,
[src]
S: StoreSpec,
Auto Trait Implementations
impl<S> RefUnwindSafe for MetaItem<S> where
S: RefUnwindSafe,
<S as StoreSpec>::Key: RefUnwindSafe,
<S as StoreSpec>::Status: RefUnwindSafe,
S: RefUnwindSafe,
<S as StoreSpec>::Key: RefUnwindSafe,
<S as StoreSpec>::Status: RefUnwindSafe,
impl<S> Send for MetaItem<S> where
S: Send,
<S as StoreSpec>::Key: Send,
<S as StoreSpec>::Status: Send,
S: Send,
<S as StoreSpec>::Key: Send,
<S as StoreSpec>::Status: Send,
impl<S> Sync for MetaItem<S> where
S: Sync,
<S as StoreSpec>::Key: Sync,
<S as StoreSpec>::Status: Sync,
S: Sync,
<S as StoreSpec>::Key: Sync,
<S as StoreSpec>::Status: Sync,
impl<S> Unpin for MetaItem<S> where
S: Unpin,
<S as StoreSpec>::Key: Unpin,
<S as StoreSpec>::Status: Unpin,
S: Unpin,
<S as StoreSpec>::Key: Unpin,
<S as StoreSpec>::Status: Unpin,
impl<S> UnwindSafe for MetaItem<S> where
S: UnwindSafe,
<S as StoreSpec>::Key: UnwindSafe,
<S as StoreSpec>::Status: UnwindSafe,
S: UnwindSafe,
<S as StoreSpec>::Key: UnwindSafe,
<S as StoreSpec>::Status: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,