SimpleMetadata

Type Alias SimpleMetadata 

Source
pub type SimpleMetadata = Metadata<String, String, String, String, f64, String, Value>;
Expand description

String encoded metadata with float weights and free-form annotations.

Aliased Type§

pub struct SimpleMetadata {
    pub id: Uuid,
    pub name: Option<String>,
    pub kind: Option<String>,
    pub labels: BTreeSet<String>,
    pub weights: BTreeMap<String, f64>,
    pub annotations: BTreeMap<String, Value>,
}

Fields§

§id: Uuid

Instance identifier. Defaults to a randomly generated UUIDv4.

§name: Option<String>

Name associated with this instance.

§kind: Option<String>

Kind of object or main category associated with this instance.

§labels: BTreeSet<String>

Set of labels associated with this instance.

§weights: BTreeMap<String, f64>

Numerical weights associated with this instance.

§annotations: BTreeMap<String, Value>

Free-form annotations associated with this instance.