Struct redis_graph::GraphConfig[][src]

pub struct GraphConfig {
    pub values: HashMap<String, Value>,
}

Simple wrapper around a graph config map that allows derserializing config values into rust types.

Fields

values: HashMap<String, Value>

Implementations

impl GraphConfig[src]

pub fn get_value<T: FromRedisValue>(&self, key: &str) -> RedisResult<Option<T>>[src]

Extracts a config Redis value at key into an Option of the desired type. Will return None in case the key did not exists. Will return an error in case the value at key failed to be parsed into T.

Trait Implementations

impl Clone for GraphConfig[src]

impl Debug for GraphConfig[src]

impl Default for GraphConfig[src]

impl FromRedisValue for GraphConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.