Enum rustracing_jaeger::thrift::jaeger::Tag[][src]

pub enum Tag {
    String {
        key: String,
        value: String,
    },
    Double {
        key: String,
        value: f64,
    },
    Bool {
        key: String,
        value: bool,
    },
    Long {
        key: String,
        value: i64,
    },
    Binary {
        key: String,
        value: Vec<u8>,
    },
}

Tag is a basic strongly typed key/value pair.

Variants

String

Fields of String

key: Stringvalue: String
Double

Fields of Double

key: Stringvalue: f64
Bool

Fields of Bool

key: Stringvalue: bool
Long

Fields of Long

key: Stringvalue: i64
Binary

Fields of Binary

key: Stringvalue: Vec<u8>

Implementations

impl Tag[src]

pub fn key(&self) -> &str[src]

Returns the key of this tag.

pub fn kind(&self) -> TagKind[src]

Returns the kind of this tag.

Trait Implementations

impl Clone for Tag[src]

impl Debug for Tag[src]

impl<'a> From<&'a LogField> for Tag[src]

impl<'a> From<&'a Tag> for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl PartialOrd<Tag> for Tag[src]

impl StructuralPartialEq for Tag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,