pub trait ReadMetadata<'a, N, K, L, W, WV, A, AV>{
// Required methods
fn id(&'a self) -> &'a Uuid;
fn name(&'a self) -> Option<&'a N>;
fn kind(&'a self) -> Option<&'a K>;
fn labels(&'a self) -> impl Iterator<Item = &'a L>
where L: 'a;
fn weights(&'a self) -> impl Iterator<Item = (&'a W, &'a WV)>
where W: 'a,
WV: 'a;
fn annotations(&'a self) -> impl Iterator<Item = (&'a A, &'a AV)>
where A: 'a,
AV: 'a;
}Expand description
Metadata read-only access trait.
Required Methods§
Sourcefn weights(&'a self) -> impl Iterator<Item = (&'a W, &'a WV)>where
W: 'a,
WV: 'a,
fn weights(&'a self) -> impl Iterator<Item = (&'a W, &'a WV)>where
W: 'a,
WV: 'a,
Get the weights from metadata.
Sourcefn annotations(&'a self) -> impl Iterator<Item = (&'a A, &'a AV)>where
A: 'a,
AV: 'a,
fn annotations(&'a self) -> impl Iterator<Item = (&'a A, &'a AV)>where
A: 'a,
AV: 'a,
Get the annotations from metadata.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.