[][src]Enum aerospike::Value

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]

pub fn is_nil(&self) -> bool[src]

Returns true if this value is the empty value (nil).

pub fn as_string(&self) -> String[src]

Returns a string representation of the value.

Trait Implementations

impl From<String> for Value[src]

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

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

impl From<HashMap<Value, Value, RandomState>> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

impl<'a> From<&'a f32> for Value[src]

impl<'a> From<&'a f64> for Value[src]

impl<'a> From<&'a String> for Value[src]

impl<'a> From<&'a str> for Value[src]

impl<'a> From<&'a Vec<u8>> for Value[src]

impl<'a> From<&'a [u8]> for Value[src]

impl From<bool> for Value[src]

impl From<i8> for Value[src]

impl From<u8> for Value[src]

impl From<i16> for Value[src]

impl From<u16> for Value[src]

impl From<i32> for Value[src]

impl From<u32> for Value[src]

impl From<i64> for Value[src]

impl From<u64> for Value[src]

impl From<isize> for Value[src]

impl From<usize> for Value[src]

impl<'a> From<&'a i8> for Value[src]

impl<'a> From<&'a u8> for Value[src]

impl<'a> From<&'a i16> for Value[src]

impl<'a> From<&'a u16> for Value[src]

impl<'a> From<&'a i32> for Value[src]

impl<'a> From<&'a u32> for Value[src]

impl<'a> From<&'a i64> for Value[src]

impl<'a> From<&'a u64> for Value[src]

impl<'a> From<&'a isize> for Value[src]

impl<'a> From<&'a usize> for Value[src]

impl<'a> From<&'a bool> for Value[src]

impl From<Value> for i64[src]

impl<'a> From<&'a Value> for i64[src]

impl Clone for Value[src]

impl Eq for Value[src]

impl PartialEq<Value> for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

impl Hash for Value[src]

impl StructuralPartialEq for Value[src]

impl StructuralEq for Value[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,