Trait FromGraphValue

Source
pub trait FromGraphValue: Sized {
    // Required method
    fn from_graph_value(value: GraphValue) -> Result<Self>;
}
Available on crate feature redis-graph only.
Expand description

Used to do GraphValue to user type conversion while consuming the input GraphValue

Required Methods§

Source

fn from_graph_value(value: GraphValue) -> Result<Self>

Converts to this type from the input GraphValue.

§Errors

Any parsing error (Error::Client) due to incompatibility between Value variant and taget type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromGraphValue for bool

Source§

impl FromGraphValue for f64

Source§

impl FromGraphValue for i64

Source§

impl FromGraphValue for String

Source§

impl<T> FromGraphValue for Option<T>
where T: FromGraphValue,

Source§

impl<T> FromGraphValue for Vec<T>
where T: FromGraphValue,

Implementors§