[−][src]Enum warpgrapher::engine::value::Value
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 DB), and the serde_json format used to return data to the client.
Examples
let v = Value::Bool(true);
Variants
Bool(bool)
Float64(f64)
Int64(i64)
String(String)
UInt64(u64)
Trait Implementations
impl Clone for Value
[src]
impl Debug for Value
[src]
impl From<HashMap<String, Value, RandomState>> for Value
[src]
impl From<String> for Value
[src]
impl From<Vec<Value>> for Value
[src]
impl From<bool> for Value
[src]
impl From<f64> for Value
[src]
impl From<i64> for Value
[src]
impl From<u64> for Value
[src]
impl FromInputValue<DefaultScalarValue> for Value
[src]
fn from_input_value(v: &InputValue) -> Option<Self>
[src]
impl PartialEq<Value> for Value
[src]
impl TryFrom<Value> for Value
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Value, Error>
[src]
impl TryFrom<Value> for bool
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<bool, Self::Error>
[src]
impl TryFrom<Value> for f64
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<f64, Self::Error>
[src]
impl TryFrom<Value> for i32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<i32, Self::Error>
[src]
impl TryFrom<Value> for String
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<String, Self::Error>
[src]
impl TryFrom<Value> for Value
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Value, Error>
[src]
impl<T> TryFrom<Value> for Vec<T> where
T: TryFrom<Value, Error = Error>,
[src]
T: TryFrom<Value, Error = Error>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
impl TryFrom<Value> for HashMap<String, Value>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,