Enum aerospike::Value
[−]
[src]
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), }
Container for bin values stored in the Aerospike database.
Variants
Nil
Empty value.
Bool(bool)
Boolean value.
Int(i64)
Integer value. All integers are represented as 64-bit numerics in Aerospike.
UInt(u64)
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()
.
Panics
Attempting to store an u64
value as a record bin value will cause a panic. Use casting to
store and retrieve u64
values.
Float(FloatValue)
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.
String(String)
String value.
Blob(Vec<u8>)
Byte array value.
List(Vec<Value>)
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.
HashMap(HashMap<Value, Value>)
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.
OrderedMap(Vec<(Value, Value)>)
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(String)
GeoJSON data type are JSON formatted strings to encode geospatial information.
Methods
impl Value
[src]
fn is_nil(&self) -> bool
[src]
Returns true if this value is the empty value (nil).
fn as_string(&self) -> String
[src]
Returns a string representation of the value.
Trait Implementations
impl Debug for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl Eq for Value
[src]
impl Hash for Value
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Value
[src]
fn fmt(&self, f: &mut Formatter) -> StdResult<(), Error>
[src]
Formats the value using the given formatter. Read more