#[non_exhaustive]pub enum DynamicNameStyle {
Identity,
PascalCase,
SnakeCase,
KebabCase,
}Expand description
Runtime-selectable name style for metric field names.
This mirrors the compile-time NameStyle types (Identity, PascalCase,
etc.) as enum variants for use in runtime configuration.
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.
Identity
Keep original field names.
PascalCase
Convert to PascalCase (e.g. WorkersCount).
SnakeCase
Convert to snake_case (e.g. workers_count).
KebabCase
Convert to kebab-case (e.g. workers-count).
Trait Implementations§
Source§impl Clone for DynamicNameStyle
impl Clone for DynamicNameStyle
Source§fn clone(&self) -> DynamicNameStyle
fn clone(&self) -> DynamicNameStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DynamicNameStyle
Source§impl Debug for DynamicNameStyle
impl Debug for DynamicNameStyle
Source§impl Default for DynamicNameStyle
impl Default for DynamicNameStyle
Source§fn default() -> DynamicNameStyle
fn default() -> DynamicNameStyle
Returns the “default value” for a type. Read more
impl Eq for DynamicNameStyle
Source§impl PartialEq for DynamicNameStyle
impl PartialEq for DynamicNameStyle
Source§fn eq(&self, other: &DynamicNameStyle) -> bool
fn eq(&self, other: &DynamicNameStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DynamicNameStyle
Auto Trait Implementations§
impl Freeze for DynamicNameStyle
impl RefUnwindSafe for DynamicNameStyle
impl Send for DynamicNameStyle
impl Sync for DynamicNameStyle
impl Unpin for DynamicNameStyle
impl UnsafeUnpin for DynamicNameStyle
impl UnwindSafe for DynamicNameStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<V, F> ValueFormatter<&V> for F
impl<V, F> ValueFormatter<&V> for F
Source§fn format_value(writer: impl ValueWriter, value: &&V)
fn format_value(writer: impl ValueWriter, value: &&V)
Write
value to writerSource§impl<V, F> ValueFormatter<Arc<V>> for F
impl<V, F> ValueFormatter<Arc<V>> for F
Source§fn format_value(writer: impl ValueWriter, value: &Arc<V>)
fn format_value(writer: impl ValueWriter, value: &Arc<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Box<V>> for F
impl<V, F> ValueFormatter<Box<V>> for F
Source§fn format_value(writer: impl ValueWriter, value: &Box<V>)
fn format_value(writer: impl ValueWriter, value: &Box<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Cow<'_, V>> for F
impl<V, F> ValueFormatter<Cow<'_, V>> for F
Source§fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
Source§fn format_value(writer: impl ValueWriter, value: &Option<V>)
fn format_value(writer: impl ValueWriter, value: &Option<V>)
Write
value to writer