pub enum Value {
BoolValue(bool),
UintValue(u64),
IntValue(i64),
DoubleValue(f64),
PointerValue(u64),
NestedValue(NestedValue),
LegacyJsonValue(String),
StringValue(String),
StringValueIid(u64),
}
Variants§
BoolValue(bool)
UintValue(u64)
IntValue(i64)
DoubleValue(f64)
PointerValue(u64)
Pointers are stored in a separate type as the JSON output treats them differently from other uint64 values.
NestedValue(NestedValue)
Deprecated. Use dict_entries / array_values instead.
LegacyJsonValue(String)
Legacy instrumentation may not support conversion of nested data to NestedValue yet.
StringValue(String)
interned and non-interned variants of strings.
StringValueIid(u64)
Corresponds to |debug_annotation_string_values| field in InternedData.
Implementations§
Source§impl Value
impl Value
Sourcepub fn merge<B>(
field: &mut Option<Value>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Value>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
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 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 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