[][src]Struct cassandra_cpp::Value

pub struct Value(_);

A single primitive value or a collection of values.

Methods

impl Value
[src]

pub fn get_bytes(&self) -> Result<&[u8]>
[src]

Get the raw bytes of this Cassandra value.

pub fn get_type(&self) -> ValueType
[src]

Get the type of this Cassandra value

pub fn data_type(&self) -> ConstDataType
[src]

Get the data type of this Cassandra value

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

Returns true if a specified value is null.

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

Returns true if a specified value is a collection.

pub fn get_set(&self) -> Result<SetIterator>
[src]

Gets this value as a set iterator.

pub fn get_map(&self) -> Result<MapIterator>
[src]

Gets this value as a map iterator.

pub fn get_user_type(&self) -> Result<UserTypeIterator>
[src]

Gets an iterator over the fields of the user type in this column or errors if you ask for the wrong type

pub fn get_str(&self) -> Result<&str>
[src]

Get this value as a string slice

pub fn get_string(&self) -> Result<String>
[src]

Get this value as a string

pub fn get_inet(&self) -> Result<Inet>
[src]

Get this value as an Inet

pub fn get_i32(&self) -> Result<i32>
[src]

Get this value as an i32

pub fn get_u32(&self) -> Result<u32>
[src]

Get this value as a u32

pub fn get_i16(&self) -> Result<i16>
[src]

Get this value as an i16

pub fn get_i8(&self) -> Result<i8>
[src]

Get this value as an i8

pub fn get_i64(&self) -> Result<i64>
[src]

Get this value as an i64

pub fn get_f32(&self) -> Result<f32>
[src]

Get this value as a float

pub fn get_f64(&self) -> Result<f64>
[src]

Get this value as a double

pub fn get_bool(&self) -> Result<bool>
[src]

Get this value asa boolean

pub fn get_uuid(&self) -> Result<Uuid>
[src]

Get this value as a UUID

Trait Implementations

impl Send for Value
[src]

impl Sync for Value
[src]

impl Debug for Value
[src]

impl Display for Value
[src]

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]