Trait fluvio_sc_schema::core::MetadataItem
source · pub trait MetadataItem: Clone + Default + Debug + PartialEq + Send + Sync + 'static {
type UId: PartialEq;
// Required methods
fn uid(&self) -> &Self::UId;
fn is_newer(&self, another: &Self) -> bool;
// Provided methods
fn is_being_deleted(&self) -> bool { ... }
fn set_labels<T>(self, _labels: Vec<(T, T)>) -> Self
where T: Into<String> { ... }
fn get_labels(&self) -> HashMap<String, String> { ... }
fn owner(&self) -> Option<&Self> { ... }
fn set_owner(&mut self, _owner: Self) { ... }
fn children(&self) -> Option<&HashMap<String, Vec<Self>>> { ... }
fn set_children(&mut self, _children: HashMap<String, Vec<Self>>) { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn is_being_deleted(&self) -> bool
fn is_being_deleted(&self) -> bool
if object is process of being deleted
sourcefn get_labels(&self) -> HashMap<String, String>
fn get_labels(&self) -> HashMap<String, String>
get string labels
fn owner(&self) -> Option<&Self>
fn set_owner(&mut self, _owner: Self)
fn children(&self) -> Option<&HashMap<String, Vec<Self>>>
fn set_children(&mut self, _children: HashMap<String, Vec<Self>>)
Object Safety§
This trait is not object safe.