[−][src]Enum bolt_proto::value::Value
An enum that can hold values of all Bolt-compatible types.
Conversions are provided for most types, and are usually pretty intuitive (bool to Value::Boolean, i32
to Value::Integer, HashMap to Value::Map, etc.), but some types have no
analog in Rust, like a timezone-aware time. For such types, conversions are still provided, but may feel a bit
clunky (for example, you can convert a (NaiveTime, impl Offset)
tuple into a Value::Time).
Variants
Node(Node)Relationship(Relationship)Path(Path)UnboundRelationship(UnboundRelationship)Time(Time)Duration(Duration)Point2D(Point2D)Point3D(Point3D)Trait Implementations
impl Clone for Value[src]
impl Debug for Value[src]
impl Deserialize for Value[src]
impl Eq for Value[src]
fn assert_receiver_is_total_eq(&self)[src]
impl<'_> From<&'_ [u8]> for Value[src]
impl<'_> From<&'_ str> for Value[src]
impl From<(NaiveDateTime, Tz)> for Value[src]
impl<O: Offset> From<(NaiveTime, O)> for Value[src]
impl<T: TimeZone> From<DateTime<T>> for Value[src]
impl From<Duration> for Value[src]
impl From<Duration> for Value[src]
impl<K, V> From<HashMap<K, V, RandomState>> for Value where
K: Into<Value>,
V: Into<Value>, [src]
K: Into<Value>,
V: Into<Value>,
fn from(value: HashMap<K, V, RandomState>) -> Self[src]
impl From<NaiveDate> for Value[src]
impl From<NaiveDateTime> for Value[src]
fn from(value: NaiveDateTime) -> Self[src]
impl From<NaiveTime> for Value[src]
impl From<Node> for Value[src]
impl From<Path> for Value[src]
impl From<Point2D> for Value[src]
impl From<Point3D> for Value[src]
impl From<Relationship> for Value[src]
fn from(value: Relationship) -> Self[src]
impl From<String> for Value[src]
impl From<UnboundRelationship> for Value[src]
fn from(value: UnboundRelationship) -> Self[src]
impl<T> From<Vec<T>> for Value where
T: Into<Value>, [src]
T: Into<Value>,
impl From<Vec<u8>> for Value[src]
impl From<bool> for Value[src]
impl From<f64> for Value[src]
impl From<i16> for Value[src]
impl From<i32> for Value[src]
impl From<i64> for Value[src]
impl From<i8> for Value[src]
impl Hash for Value[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Marker for Value[src]
fn get_marker(&self) -> Result<u8>[src]
impl PartialEq<Value> for Value[src]
impl Serialize for Value[src]
fn try_into_bytes(self) -> Result<Bytes>[src]
impl StructuralPartialEq for Value[src]
impl TryFrom<Arc<Mutex<Bytes>>> for Value[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(input_arc: Arc<Mutex<Bytes>>) -> Result<Self>[src]
impl TryFrom<Value> for bool[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for i8[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl<K, S> TryFrom<Value> for HashMap<K, Value, S> where
K: Hash + Eq + TryFrom<Value, Error = Error>,
S: BuildHasher + Default, [src]
K: Hash + Eq + TryFrom<Value, Error = Error>,
S: BuildHasher + Default,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for String[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Node[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Relationship[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Path[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for UnboundRelationship[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for NaiveDate[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Time[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for DateTime<FixedOffset>[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for DateTime<Tz>[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for i16[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for NaiveTime[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for NaiveDateTime[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Duration[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Point2D[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Point3D[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for i32[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for i64[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for f64[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Vec<u8>[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl<T> TryFrom<Value> for Vec<T> where
T: TryFrom<Value, Error = Error>, [src]
T: TryFrom<Value, Error = Error>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryFrom<Value> for Vec<Value>[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl<K, V, S> TryFrom<Value> for HashMap<K, V, S> where
K: Hash + Eq + TryFrom<Value, Error = Error>,
V: TryFrom<Value, Error = Error>,
S: BuildHasher + Default, [src]
K: Hash + Eq + TryFrom<Value, Error = Error>,
V: TryFrom<Value, Error = Error>,
S: BuildHasher + Default,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self>[src]
impl TryInto<Bytes> for Value[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,