Trait ToValue
log::kv::value
pub trait ToValue { fn to_value(&self) -> Value<'_>; }
A type that can be converted into a Value.
Value
fn to_value(&self) -> Value<'_>
Perform the conversion.
impl<'a, T: ?Sized> ToValue for &'a T where T: ToValue,
impl ToValue for dyn Debug
impl ToValue for dyn Display
impl ToValue for str
impl ToValue for ()
impl<T> ToValue for Option<T> where T: ToValue,
impl ToValue for usize
impl ToValue for u8
impl ToValue for u16
impl ToValue for u32
impl ToValue for u64
impl ToValue for u128
impl ToValue for isize
impl ToValue for i8
impl ToValue for i16
impl ToValue for i32
impl ToValue for i64
impl ToValue for i128
impl ToValue for f32
impl ToValue for f64
impl ToValue for char
impl ToValue for bool
impl<'v> ToValue for Value<'v>