Struct fluvio_sc_schema::store::k8::K8MetaItem
source · pub struct K8MetaItem { /* private fields */ }
Implementations§
source§impl K8MetaItem
impl K8MetaItem
Methods from Deref<Target = ObjectMeta>§
sourcepub fn make_owner_reference<S>(&self) -> OwnerReferenceswhere
S: Spec,
pub fn make_owner_reference<S>(&self) -> OwnerReferenceswhere
S: Spec,
create owner references point to this metadata if name or uid doesn’t exists return none
pub fn namespace(&self) -> &str
sourcepub fn make_child_input_metadata<S>(&self, childname: String) -> InputObjectMetawhere
S: Spec,
pub fn make_child_input_metadata<S>(&self, childname: String) -> InputObjectMetawhere
S: Spec,
create child references that points to this
pub fn as_input(&self) -> InputObjectMeta
pub fn as_item(&self) -> ItemMeta
pub fn as_update(&self) -> UpdateItemMeta
Trait Implementations§
source§impl Clone for K8MetaItem
impl Clone for K8MetaItem
source§fn clone(&self) -> K8MetaItem
fn clone(&self) -> K8MetaItem
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 K8MetaItem
impl Debug for K8MetaItem
source§impl Default for K8MetaItem
impl Default for K8MetaItem
source§fn default() -> K8MetaItem
fn default() -> K8MetaItem
Returns the “default value” for a type. Read more
source§impl Deref for K8MetaItem
impl Deref for K8MetaItem
source§type Target = ObjectMeta
type Target = ObjectMeta
The resulting type after dereferencing.
source§impl DerefMut for K8MetaItem
impl DerefMut for K8MetaItem
source§impl MetadataItem for K8MetaItem
impl MetadataItem for K8MetaItem
type UId = String
fn uid(&self) -> &<K8MetaItem as MetadataItem>::UId
source§fn is_newer(&self, another: &K8MetaItem) -> bool
fn is_newer(&self, another: &K8MetaItem) -> bool
checkif item is newer
source§fn is_being_deleted(&self) -> bool
fn is_being_deleted(&self) -> bool
if object is process of being deleted
source§fn set_labels<T>(self, labels: Vec<(T, T)>) -> K8MetaItem
fn set_labels<T>(self, labels: Vec<(T, T)>) -> K8MetaItem
set string labels
fn owner(&self) -> Option<&K8MetaItem>
fn set_owner(&mut self, owner: K8MetaItem)
fn children(&self) -> Option<&HashMap<String, Vec<Self>>>
fn set_children(&mut self, _children: HashMap<String, Vec<Self>>)
source§impl PartialEq for K8MetaItem
impl PartialEq for K8MetaItem
for sake of comparison, we only care about couple of fields in the metadata
source§impl TryFrom<ObjectMeta> for K8MetaItem
impl TryFrom<ObjectMeta> for K8MetaItem
source§type Error = ParseIntError
type Error = ParseIntError
The type returned in the event of a conversion error.
source§fn try_from(
value: ObjectMeta,
) -> Result<K8MetaItem, <K8MetaItem as TryFrom<ObjectMeta>>::Error>
fn try_from( value: ObjectMeta, ) -> Result<K8MetaItem, <K8MetaItem as TryFrom<ObjectMeta>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for K8MetaItem
impl RefUnwindSafe for K8MetaItem
impl Send for K8MetaItem
impl Sync for K8MetaItem
impl Unpin for K8MetaItem
impl UnwindSafe for K8MetaItem
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)