pub enum LeafValue<'a> {
Show 16 variants
Bool(bool),
Duration(Duration),
F64(f64),
F64Map(&'a HashMap<String, f64>),
I64(i64),
JsonList(&'a [Value]),
JsonMap(&'a Map<String, Value>),
JsonMapList(&'a [Map<String, Value>]),
OptionI64(Option<i64>),
OptionStr(Option<&'a str>),
Str(&'a str),
StringList(&'a [String]),
StringListMap(&'a HashMap<String, Vec<String>>),
StringMap(&'a HashMap<String, String>),
StringMapList(&'a [HashMap<String, String>]),
Uncompared,
}Expand description
A supported configuration leaf’s typed value, borrowed from a DatadogConfiguration.
One variant per Rust leaf type the generator knows, plus Uncompared for any other type.
Pair this with LEAVES to read any supported dotted key’s typed value without cloning it.
Variants§
Bool(bool)
A bool leaf.
Duration(Duration)
A std::time::Duration leaf.
F64(f64)
A f64 leaf.
F64Map(&'a HashMap<String, f64>)
A &'a HashMap<String, f64> leaf.
I64(i64)
A i64 leaf.
JsonList(&'a [Value])
A &'a [::serde_json::Value] leaf.
JsonMap(&'a Map<String, Value>)
A &'a ::serde_json::Map<String, ::serde_json::Value> leaf.
JsonMapList(&'a [Map<String, Value>])
A &'a [::serde_json::Map<String, ::serde_json::Value>] leaf.
OptionI64(Option<i64>)
A Option<i64> leaf.
OptionStr(Option<&'a str>)
A Option<&'a str> leaf.
Str(&'a str)
A &'a str leaf.
StringList(&'a [String])
A &'a [String] leaf.
StringListMap(&'a HashMap<String, Vec<String>>)
A &'a HashMap<String, Vec<String>> leaf.
StringMap(&'a HashMap<String, String>)
A &'a HashMap<String, String> leaf.
StringMapList(&'a [HashMap<String, String>])
A &'a [HashMap<String, String>] leaf.
Uncompared
A leaf whose Rust type no other variant covers. Its value is not read.