pub enum Value {
Nil,
Bool(bool),
Int(i64),
UInt(u64),
Float(FloatValue),
String(String),
Blob(Vec<u8>),
List(Vec<Value>),
HashMap(HashMap<Value, Value>),
OrderedMap(Vec<(Value, Value)>),
GeoJSON(String),
HLL(Vec<u8>),
}
Expand description
Container for bin values stored in the Aerospike database.
Integer value. All integers are represented as 64-bit numerics in Aerospike.
Unsigned integer value. The largest integer value that can be stored in a record bin is
i64::max_value()
; however the list and map data types can store integer values (and keys)
up to u64::max_value()
.
Attempting to store an u64
value as a record bin value will cause a panic. Use casting to
store and retrieve u64
values.
Floating point value. All floating point values are stored in 64-bit IEEE-754 format in
Aerospike. Aerospike server v3.6.0 and later support double data type.
List data type is an ordered collection of values. Lists can contain values of any
supported data type. List data order is maintained on writes and reads.
Map data type is a collection of key-value pairs. Each key can only appear once in a
collection and is associated with a value. Map keys and values can be any supported data
type.
Map data type where the map entries are sorted based key ordering (K-ordered maps) and may
have an additional value-order index depending the namespace configuration (KV-ordered
maps).
GeoJSON data type are JSON formatted strings to encode geospatial information.
Returns true if this value is the empty value (nil).
Returns a string representation of the value.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.