#[non_exhaustive]pub enum LabelKey {
Workflow,
Provider,
Model,
Purpose,
Risk,
Interaction,
ErrorCode,
Operation,
Effort,
}Expand description
Name of a metric dimension.
The set is closed on purpose: it is exactly the typed, bounded fields of
SignalLabels. There is no variant for anything an end user typed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Workflow
Workflow key, e.g. trip.
Provider
Configured provider key, e.g. openai.
Model
Configured model key, e.g. gpt-x.
Purpose
Normalized request purpose, e.g. extract (spec §20.2).
Risk
Risk class of a command (spec §14.3).
Interaction
Kind of an interaction (spec §15).
ErrorCode
Stable machine-readable failure or rejection code. Never a message.
Operation
Operation an act names, e.g. trip.set_name. Bounded by the
catalog, like Self::Workflow is bounded by the registry.
Effort
The effort of the turn, low, medium or high.
Implementations§
Trait Implementations§
impl Copy for LabelKey
Source§impl<'de> Deserialize<'de> for LabelKey
impl<'de> Deserialize<'de> for LabelKey
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
impl Eq for LabelKey
Source§impl Ord for LabelKey
impl Ord for LabelKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LabelKey
impl PartialOrd for LabelKey
impl StructuralPartialEq for LabelKey
Auto Trait Implementations§
impl Freeze for LabelKey
impl RefUnwindSafe for LabelKey
impl Send for LabelKey
impl Sync for LabelKey
impl Unpin for LabelKey
impl UnsafeUnpin for LabelKey
impl UnwindSafe for LabelKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.