Enum bolt_proto::value::Value [−][src]
pub enum Value {
Show 21 variants
Boolean(bool),
Integer(i64),
Float(f64),
Bytes(Vec<u8>),
List(Vec<Value>),
Map(HashMap<String, Value>),
Null,
String(String),
Node(Node),
Relationship(Relationship),
Path(Path),
UnboundRelationship(UnboundRelationship),
Date(NaiveDate),
Time(NaiveTime, FixedOffset),
DateTimeOffset(DateTime<FixedOffset>),
DateTimeZoned(DateTime<Tz>),
LocalTime(NaiveTime),
LocalDateTime(NaiveDateTime),
Duration(Duration),
Point2D(Point2D),
Point3D(Point3D),
}
Expand description
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(bool)
Tuple Fields
0: bool
Integer(i64)
Tuple Fields
0: i64
Float(f64)
Tuple Fields
0: f64
Bytes(Vec<u8>)
List(Vec<Value>)
Map(HashMap<String, Value>)
Null
String(String)
Tuple Fields
0: String
Node(Node)
Tuple Fields
0: Node
Relationship(Relationship)
Tuple Fields
0: Relationship
Path(Path)
Tuple Fields
0: Path
UnboundRelationship(UnboundRelationship)
Tuple Fields
Date(NaiveDate)
Tuple Fields
0: NaiveDate
Time(NaiveTime, FixedOffset)
DateTimeOffset(DateTime<FixedOffset>)
Tuple Fields
0: DateTime<FixedOffset>
DateTimeZoned(DateTime<Tz>)
LocalTime(NaiveTime)
Tuple Fields
0: NaiveTime
LocalDateTime(NaiveDateTime)
Tuple Fields
Duration(Duration)
Tuple Fields
0: Duration
Point2D(Point2D)
Tuple Fields
0: Point2D
Point3D(Point3D)
Tuple Fields
0: Point3D
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
impl<V, S> TryFrom<Value> for HashMap<String, V, S> where
V: TryFrom<Value, Error = ConversionError>,
S: BuildHasher + Default,
impl<V, S> TryFrom<Value> for HashMap<String, V, S> where
V: TryFrom<Value, Error = ConversionError>,
S: BuildHasher + Default,
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more