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]
impl Value
pub fn is_nil(&self) -> bool
[src]
pub fn is_nil(&self) -> bool
Returns true if this value is the empty value (nil).
pub fn as_string(&self) -> String
[src]
pub fn as_string(&self) -> String
Returns a string representation of the value.
Trait Implementations
impl Debug for Value
[src]
impl Debug for Value
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Eq for Value
[src]
impl Eq for Value
impl Hash for Value
[src]
impl Hash for Value
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Value
[src]
impl Display for Value
fn fmt(&self, f: &mut Formatter) -> StdResult<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> StdResult<(), Error>
Formats the value using the given formatter. Read more
impl From<String> for Value
[src]
impl From<String> for Value
impl From<Vec<u8>> for Value
[src]
impl From<Vec<u8>> for Value
impl From<Vec<Value>> for Value
[src]
impl From<Vec<Value>> for Value
impl From<HashMap<Value, Value>> for Value
[src]
impl From<HashMap<Value, Value>> for Value
impl From<f32> for Value
[src]
impl From<f32> for Value
impl From<f64> for Value
[src]
impl From<f64> for Value
impl<'a> From<&'a f32> for Value
[src]
impl<'a> From<&'a f32> for Value
impl<'a> From<&'a f64> for Value
[src]
impl<'a> From<&'a f64> for Value
impl<'a> From<&'a String> for Value
[src]
impl<'a> From<&'a String> for Value
impl<'a> From<&'a str> for Value
[src]
impl<'a> From<&'a str> for Value
impl<'a> From<&'a Vec<u8>> for Value
[src]
impl<'a> From<&'a Vec<u8>> for Value
impl<'a> From<&'a [u8]> for Value
[src]
impl<'a> From<&'a [u8]> for Value
impl From<bool> for Value
[src]
impl From<bool> for Value
impl From<i8> for Value
[src]
impl From<i8> for Value
impl From<u8> for Value
[src]
impl From<u8> for Value
impl From<i16> for Value
[src]
impl From<i16> for Value
impl From<u16> for Value
[src]
impl From<u16> for Value
impl From<i32> for Value
[src]
impl From<i32> for Value
impl From<u32> for Value
[src]
impl From<u32> for Value
impl From<i64> for Value
[src]
impl From<i64> for Value
impl From<u64> for Value
[src]
impl From<u64> for Value
impl From<isize> for Value
[src]
impl From<isize> for Value
impl From<usize> for Value
[src]
impl From<usize> for Value
impl<'a> From<&'a i8> for Value
[src]
impl<'a> From<&'a i8> for Value
impl<'a> From<&'a u8> for Value
[src]
impl<'a> From<&'a u8> for Value
impl<'a> From<&'a i16> for Value
[src]
impl<'a> From<&'a i16> for Value
impl<'a> From<&'a u16> for Value
[src]
impl<'a> From<&'a u16> for Value
impl<'a> From<&'a i32> for Value
[src]
impl<'a> From<&'a i32> for Value
impl<'a> From<&'a u32> for Value
[src]
impl<'a> From<&'a u32> for Value
impl<'a> From<&'a i64> for Value
[src]
impl<'a> From<&'a i64> for Value
impl<'a> From<&'a u64> for Value
[src]
impl<'a> From<&'a u64> for Value
impl<'a> From<&'a isize> for Value
[src]
impl<'a> From<&'a isize> for Value
impl<'a> From<&'a usize> for Value
[src]
impl<'a> From<&'a usize> for Value
impl<'a> From<&'a bool> for Value
[src]
impl<'a> From<&'a bool> for Value
impl From<Value> for i64
[src]
impl From<Value> for i64
impl<'a> From<&'a Value> for i64
[src]
impl<'a> From<&'a Value> for i64