Struct cassandra_cpp::Value[][src]

pub struct Value(_);
Expand description

A single primitive value or a collection of values.

Implementations

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 Debug for Value[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for Value[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Send for Value[src]

impl Sync for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

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

Converts the given value to a String. Read more

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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