Struct Instrument Name
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
An OpenTelemetry instrument name together with its canonical form.
Implementations
impl InstrumentName
impl InstrumentName
as_str
pub fn as_str(&self) -> &str
Return the original valid instrument name.
canonical
pub fn canonical(&self) -> String
Return the case-insensitive canonical instrument name.
Trait Implementations
impl Clone for InstrumentName
impl Clone for InstrumentName
clone
fn clone(&self) -> InstrumentName
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for InstrumentName
impl Debug for InstrumentName
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl FromStr for InstrumentName
impl FromStr for InstrumentName
Err
type Err = MetricValidationError
from_str
fn from_str(
name: &str,
) -> Result<InstrumentName, <InstrumentName as FromStr>::Err>
impl Hash for InstrumentName
impl Hash for InstrumentName
hash
fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,
hash_slice
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl PartialEq for InstrumentName
impl PartialEq for InstrumentName
eq
fn eq(&self, other: &InstrumentName) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Eq for InstrumentName
impl Eq for InstrumentName
impl StructuralPartialEq for InstrumentName
impl StructuralPartialEq for InstrumentName