[−][src]Struct redis_graph::NodeValue
Represents a Redis graph node which is an object like structure with potentially multiple named fields.
Fields
id: u64
labels: Vec<String>
properties: HashMap<String, Value>
Trait Implementations
impl Clone for NodeValue
[src]
impl Debug for NodeValue
[src]
impl Default for NodeValue
[src]
impl FromRedisValue for NodeValue
[src]
pub 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>
impl WithProperties for NodeValue
[src]
Allows property extraction on NodeValues.
pub fn get_property_value(&self, key: &str) -> Option<&Value>
[src]
pub fn get_property<T: FromRedisValue>(
&self,
key: &str
) -> RedisResult<Option<T>>
[src]
&self,
key: &str
) -> RedisResult<Option<T>>
pub fn get_property_option<T: FromRedisValue>(&self, key: &str) -> Option<T>
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeValue
impl Send for NodeValue
impl Sync for NodeValue
impl Unpin for NodeValue
impl UnwindSafe for NodeValue
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>,