pub enum TraceValue {
Str(String),
Int(i64),
Double(f64),
Bool(bool),
StrArray(Vec<String>),
IntArray(Vec<i64>),
DoubleArray(Vec<f64>),
BoolArray(Vec<bool>),
}Expand description
An attribute value: a string, integer, number, boolean or a homogeneous array of one of those (3.10.1).
Variants§
Str(String)
Int(i64)
Double(f64)
Bool(bool)
StrArray(Vec<String>)
IntArray(Vec<i64>)
DoubleArray(Vec<f64>)
BoolArray(Vec<bool>)
Implementations§
Source§impl TraceValue
impl TraceValue
Trait Implementations§
Source§impl Clone for TraceValue
impl Clone for TraceValue
Source§impl Debug for TraceValue
impl Debug for TraceValue
Source§impl<'de> Deserialize<'de> for TraceValue
impl<'de> Deserialize<'de> for TraceValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for TraceValue
impl From<&str> for TraceValue
Source§impl From<String> for TraceValue
impl From<String> for TraceValue
Source§impl From<bool> for TraceValue
impl From<bool> for TraceValue
Source§impl From<i64> for TraceValue
impl From<i64> for TraceValue
Source§impl JsonSchema for TraceValue
impl JsonSchema for TraceValue
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TraceValue
impl PartialEq for TraceValue
Source§impl Serialize for TraceValue
impl Serialize for TraceValue
impl StructuralPartialEq for TraceValue
Auto Trait Implementations§
impl Freeze for TraceValue
impl RefUnwindSafe for TraceValue
impl Send for TraceValue
impl Sync for TraceValue
impl Unpin for TraceValue
impl UnsafeUnpin for TraceValue
impl UnwindSafe for TraceValue
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