pub struct MetadataRef<'a, N, K, L, W, WV, A, AV>{
pub id: Uuid,
pub name: Option<&'a N>,
pub kind: Option<&'a K>,
pub labels: BTreeSet<&'a L>,
pub weights: BTreeMap<&'a W, &'a WV>,
pub annotations: BTreeMap<&'a A, &'a AV>,
}Expand description
Metadata for any object.
Fields§
§id: UuidInstance identifier. Defaults to a randomly generated UUIDv4.
name: Option<&'a N>Name associated with this instance.
kind: Option<&'a K>Kind of object or main category associated with this instance.
labels: BTreeSet<&'a L>Set of labels associated with this instance.
weights: BTreeMap<&'a W, &'a WV>Numerical weights associated with this instance.
annotations: BTreeMap<&'a A, &'a AV>Free-form annotations associated with this instance.
Implementations§
Source§impl<'a, N, K, L, W, WV, A, AV> MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> MetadataRef<'a, N, K, L, W, WV, A, AV>
Sourcepub fn builder() -> MetadataRefBuilder<'a, N, K, L, W, WV, A, AV>
pub fn builder() -> MetadataRefBuilder<'a, N, K, L, W, WV, A, AV>
Create an instance of MetadataRef using the builder syntax
Source§impl<'a, N, K, L, W, WV, A, AV> MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> MetadataRef<'a, N, K, L, W, WV, A, AV>
Trait Implementations§
Source§impl<'a, N, K, L, W, WV, A, AV> Clone for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> Clone for MetadataRef<'a, N, K, L, W, WV, A, AV>
Source§fn clone(&self) -> MetadataRef<'a, N, K, L, W, WV, A, AV>
fn clone(&self) -> MetadataRef<'a, N, K, L, W, WV, A, AV>
Returns a duplicate 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<'a, N, K, L, W, WV, A, AV> Debug for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> Debug for MetadataRef<'a, N, K, L, W, WV, A, AV>
Source§impl<'a, N, K, L, W, WV, A, AV> PartialEq for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> PartialEq for MetadataRef<'a, N, K, L, W, WV, A, AV>
Source§fn eq(&self, other: &MetadataRef<'a, N, K, L, W, WV, A, AV>) -> bool
fn eq(&self, other: &MetadataRef<'a, N, K, L, W, WV, A, AV>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a, N, K, L, W, WV, A, AV> ReadMetadata<'a, N, K, L, W, WV, A, AV> for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> ReadMetadata<'a, N, K, L, W, WV, A, AV> for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> StructuralPartialEq for MetadataRef<'a, N, K, L, W, WV, A, AV>
Auto Trait Implementations§
impl<'a, N, K, L, W, WV, A, AV> Freeze for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> RefUnwindSafe for MetadataRef<'a, N, K, L, W, WV, A, AV>where
N: RefUnwindSafe,
K: RefUnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
AV: RefUnwindSafe,
L: RefUnwindSafe,
impl<'a, N, K, L, W, WV, A, AV> Send for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> Sync for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> Unpin for MetadataRef<'a, N, K, L, W, WV, A, AV>
impl<'a, N, K, L, W, WV, A, AV> UnwindSafe for MetadataRef<'a, N, K, L, W, WV, A, AV>where
N: RefUnwindSafe,
K: RefUnwindSafe,
W: RefUnwindSafe,
WV: RefUnwindSafe,
A: RefUnwindSafe,
AV: RefUnwindSafe,
L: RefUnwindSafe,
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