pub enum Value {
IntValue(i64),
StringValue(String),
StringValueIid(u64),
}Expand description
The typed value of the dimension. This is the value used for SQL queries, track identity and (for well-known dimensions) merging, so it must be stable for the whole trace.
Variants§
IntValue(i64)
StringValue(String)
StringValueIid(u64)
Interned version of string_value: corresponds to the
track_dimension_strings field in InternedData, looked up in the
interned data of the sequence the TrackDescriptor is emitted on. The
resolved string is the value, so an interned and an inline string with
the same contents are the same value.
Implementations§
Source§impl Value
impl Value
Sourcepub fn merge(
field: &mut Option<Value>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Value>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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