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

Empty value.

Boolean value.

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().

Panics

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.

String value.

Byte array 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.

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.

Methods

impl Value
[src]

[src]

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

[src]

Returns a string representation of the value.

Trait Implementations

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Value
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Value
[src]

impl Hash for Value
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Value
[src]

[src]

Formats the value using the given formatter. Read more

impl From<String> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<f32> for Value
[src]

[src]

Performs the conversion.

impl From<f64> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<bool> for Value
[src]

[src]

Performs the conversion.

impl From<i8> for Value
[src]

[src]

Performs the conversion.

impl From<u8> for Value
[src]

[src]

Performs the conversion.

impl From<i16> for Value
[src]

[src]

Performs the conversion.

impl From<u16> for Value
[src]

[src]

Performs the conversion.

impl From<i32> for Value
[src]

[src]

Performs the conversion.

impl From<u32> for Value
[src]

[src]

Performs the conversion.

impl From<i64> for Value
[src]

[src]

Performs the conversion.

impl From<u64> for Value
[src]

[src]

Performs the conversion.

impl From<isize> for Value
[src]

[src]

Performs the conversion.

impl From<usize> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.