pub fn error_variant_serializer_skip_cleared<S: Serializer, T: Serialize + Clearable>(
    value: &T,
    serializer: S
) -> Result<S::Ok, S::Error>
Expand description

Serializer for values within a struct generated by metered::metered_error_variants that adds an error_kind label when being serialized by serde_prometheus. If the value has been cleared. This operation is a no-op and the value wont be written to the serializer.