#[repr(i32)]pub enum FieldKind {
FIELD_KIND_UNSPECIFIED = 0,
LABEL = 1,
ATTRIBUTE = 2,
MEASUREMENT = 3,
TRACE_ID = 4,
SPAN_ID = 5,
PARENT_SPAN_ID = 6,
TIMESTAMP_NS = 7,
DURATION_NS = 8,
FORENSIC = 9,
}Variants§
FIELD_KIND_UNSPECIFIED = 0
LABEL = 1
ATTRIBUTE = 2
MEASUREMENT = 3
TRACE_ID = 4
SPAN_ID = 5
PARENT_SPAN_ID = 6
TIMESTAMP_NS = 7
DURATION_NS = 8
FORENSIC = 9
Implementations§
Source§impl FieldKind
impl FieldKind
Sourcepub const Unspecified: FieldKind = Self::FIELD_KIND_UNSPECIFIED
pub const Unspecified: FieldKind = Self::FIELD_KIND_UNSPECIFIED
Short-name alias for FIELD_KIND_UNSPECIFIED.
Sourcepub const Measurement: FieldKind = Self::MEASUREMENT
pub const Measurement: FieldKind = Self::MEASUREMENT
Short-name alias for MEASUREMENT.
Sourcepub const ParentSpanId: FieldKind = Self::PARENT_SPAN_ID
pub const ParentSpanId: FieldKind = Self::PARENT_SPAN_ID
Short-name alias for PARENT_SPAN_ID.
Sourcepub const TimestampNs: FieldKind = Self::TIMESTAMP_NS
pub const TimestampNs: FieldKind = Self::TIMESTAMP_NS
Short-name alias for TIMESTAMP_NS.
Sourcepub const DurationNs: FieldKind = Self::DURATION_NS
pub const DurationNs: FieldKind = Self::DURATION_NS
Short-name alias for DURATION_NS.
Sourcepub const fn is_envelope_lifted(self) -> bool
pub const fn is_envelope_lifted(self) -> bool
True if a value of this kind is lifted from the typed payload to a dedicated envelope slot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldKind
impl<'de> Deserialize<'de> for FieldKind
Source§fn deserialize<D>(d: D) -> Result<FieldKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<FieldKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for FieldKind
impl Enumeration for FieldKind
Source§fn from_i32(value: i32) -> Option<FieldKind>
fn from_i32(value: i32) -> Option<FieldKind>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§impl Ord for FieldKind
impl Ord for FieldKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FieldKind
impl PartialOrd for FieldKind
Source§impl Serialize for FieldKind
impl Serialize for FieldKind
Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.