[][src]Struct cdrs::types::value::Value

pub struct Value {
    pub body: Vec<u8>,
    pub value_type: ValueType,
}

Cassandra value which could be an array of bytes, null and non-set values.

Fields

body: Vec<u8>value_type: ValueType

Methods

impl Value[src]

pub fn new_normal<B>(v: B) -> Value where
    B: Into<Bytes>, 
[src]

The factory method which creates a normal type value basing on provided bytes.

pub fn new_null() -> Value[src]

The factory method which creates null Cassandra value.

pub fn new_not_set() -> Value[src]

The factory method which creates non-set Cassandra value.

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl<T: Into<Bytes>> From<Option<T>> for Value[src]

impl<T: Into<Bytes>> From<T> for Value[src]

impl IntoBytes for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

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

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

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

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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

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.