Crate fastmetrics_derive

Crate fastmetrics_derive 

Source
Expand description

This crate provides some derive macros for fastmetrics.

Derive Macrosยง

EncodeLabelSet
Derive the EncodeLabelSet trait for structs.
EncodeLabelValue
This macro generates an implementation of the EncodeLabelValue trait, which allows them to be used as values in metric labels. This is useful for ensuring type safety when using enumerated values as labels.
Register
Derive the Register trait for structs.
StateSetValue
Derive the StateSetValue trait for enums.