Trait ToValue

Source
pub trait ToValue {
    // Required method
    fn to_value(&self) -> Value;
}
Expand description

Utility functions for converting types into opentelemetry::Value.

Required Methods§

Source

fn to_value(&self) -> Value

Implementations on Foreign Types§

Source§

impl ToValue for &str

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for IpAddr

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for AccountId

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for f64

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for i64

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for u16

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for u32

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for usize

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for Duration

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for Digest

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for BatchId

Source§

fn to_value(&self) -> Value

Source§

impl ToValue for BlockNumber

Source§

fn to_value(&self) -> Value

Implementors§