[][src]Enum bolt_proto::value::Value

pub enum Value {
    Boolean(Boolean),
    Integer(Integer),
    Float(Float),
    Bytes(ByteArray),
    List(List),
    Map(Map),
    Null,
    String(String),
    Node(Node),
    Relationship(Relationship),
    Path(Path),
    UnboundRelationship(UnboundRelationship),
    Date(Date),
    Time(Time),
    DateTimeOffset(DateTimeOffset),
    DateTimeZoned(DateTimeZoned),
    LocalTime(LocalTime),
    LocalDateTime(LocalDateTime),
    Duration(Duration),
    Point2D(Point2D),
    Point3D(Point3D),
}

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

Boolean(Boolean)
Integer(Integer)
Float(Float)
Bytes(ByteArray)
List(List)
Map(Map)
Null
String(String)
Node(Node)
Relationship(Relationship)
Path(Path)
UnboundRelationship(UnboundRelationship)
Date(Date)
Time(Time)
DateTimeOffset(DateTimeOffset)
DateTimeZoned(DateTimeZoned)
LocalTime(LocalTime)
LocalDateTime(LocalDateTime)
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]

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]

impl From<NaiveDate> for Value[src]

impl From<NaiveDateTime> for Value[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]

impl From<String> for Value[src]

impl From<UnboundRelationship> for Value[src]

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

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]

impl Marker for Value[src]

impl PartialEq<Value> for Value[src]

impl Serialize for Value[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.

impl TryFrom<Value> for bool[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for i8[src]

type Error = Error

The type returned in the event of a conversion error.

impl<K, S> TryFrom<Value> for HashMap<K, Value, S> where
    K: Hash + Eq + TryFrom<Value, Error = Error>,
    S: BuildHasher + Default
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for String[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Node[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Relationship[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Path[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for UnboundRelationship[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for NaiveDate[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Time[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for DateTime<FixedOffset>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for DateTime<Tz>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for NaiveTime[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for NaiveDateTime[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Duration[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Point2D[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Point3D[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for f64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<T> TryFrom<Value> for Vec<T> where
    T: TryFrom<Value, Error = Error>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Vec<Value>[src]

type Error = Error

The type returned in the event of a conversion error.

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]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<Bytes> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

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]

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.