Trait fluvio_stream_model::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: Into<String>>(self, _labels: Vec<(T, T)>) -> Self { ... }
    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§

source

fn uid(&self) -> &Self::UId

source

fn is_newer(&self, another: &Self) -> bool

checkif item is newer

Provided Methods§

source

fn is_being_deleted(&self) -> bool

if object is process of being deleted

source

fn set_labels<T: Into<String>>(self, _labels: Vec<(T, T)>) -> Self

set string labels

source

fn get_labels(&self) -> HashMap<String, String>

get string labels

source

fn owner(&self) -> Option<&Self>

source

fn set_owner(&mut self, _owner: Self)

source

fn children(&self) -> Option<&HashMap<String, Vec<Self>>>

source

fn set_children(&mut self, _children: HashMap<String, Vec<Self>>)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MetadataItem for u32

§

type UId = u32

source§

fn uid(&self) -> &Self::UId

source§

fn is_newer(&self, another: &Self) -> bool

source§

impl MetadataItem for u64

§

type UId = u64

source§

fn uid(&self) -> &Self::UId

source§

fn is_newer(&self, another: &Self) -> bool

Implementors§