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§
Sourcefn from_graph_value(value: GraphValue) -> Result<Self>
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.