pub struct Labels {
pub run_id: Option<String>,
pub round: Option<u64>,
pub node: Option<String>,
pub step: Option<String>,
pub member: Option<String>,
pub persona: Option<String>,
pub extra: Map<String, Value>,
}Expand description
The reserved label keys, plus whatever else a producer stamped.
Reserved keys are absent rather than empty when unknown, so an enricher can
tell “not stamped” from “stamped empty”. The extras are flattened beside them,
in the order they were stamped — which is where this crate’s own session and
identity labels travel.
Fields§
§run_id: Option<String>The run this event belongs to.
round: Option<u64>The round within the run.
node: Option<String>The graph node being executed.
step: Option<String>The step within a node that runs several in sequence.
member: Option<String>Which member of a conversation produced the event.
persona: Option<String>The persona that member is running under.
extra: Map<String, Value>Free-form extras beyond the reserved keys above, carried untouched.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Labels
impl<'de> Deserialize<'de> for Labels
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Labels
impl JsonSchema for Labels
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Labels
Auto Trait Implementations§
impl Freeze for Labels
impl RefUnwindSafe for Labels
impl Send for Labels
impl Sync for Labels
impl Unpin for Labels
impl UnsafeUnpin for Labels
impl UnwindSafe for Labels
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