pub enum Value {
Array(Vec<Value>),
Bool(bool),
Float64(f64),
Int64(i64),
Map(HashMap<String, Value>),
Null,
String(String),
UInt64(u64),
Uuid(Uuid),
}
Expand description
Intermediate data structure for serialized values, allowing for translation between the values returned by the back-end database (serde_json for Neo4j, and a library-specific seralized format for Cosmos and Gremlin DBs), and the serde_json format used to return data to the client.
Examples
let v = Value::Bool(true);
Variants
Array(Vec<Value>)
Bool(bool)
Float64(f64)
Int64(i64)
Map(HashMap<String, Value>)
Null
String(String)
UInt64(u64)
Uuid(Uuid)
Trait Implementations
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
Performs the conversion.
Performs the conversion from an absent value (e.g. to distinguish between implicit and
explicit null). The default implementation just uses from_input_value
as if an explicit
null were provided. This conversion must not fail. Read more
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more