[−][src]Enum aerospike::Value
Container for bin values stored in the Aerospike database.
Variants
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.
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(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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,