Struct redis_graph::GraphConfig [−][src]
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]
fn clone(&self) -> GraphConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GraphConfig
[src]
impl Default for GraphConfig
[src]
fn default() -> GraphConfig
[src]
impl FromRedisValue for GraphConfig
[src]
fn from_redis_value(v: &Value) -> RedisResult<Self>
[src]
pub fn from_redis_values(
items: &[Value]
) -> Result<Vec<Self, Global>, RedisError>
[src]
items: &[Value]
) -> Result<Vec<Self, Global>, RedisError>
Auto Trait Implementations
impl RefUnwindSafe for GraphConfig
[src]
impl Send for GraphConfig
[src]
impl Sync for GraphConfig
[src]
impl Unpin for GraphConfig
[src]
impl UnwindSafe for GraphConfig
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,