Struct cdrs::types::value::Value
[−]
[src]
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]
fn new_normal(body: Vec<u8>) -> Value
The factory method which creates a normal type value basing on provided bytes.
fn new_null() -> Value
The factory method which creates null Cassandra value.
fn new_not_set() -> Value
The factory method which creates non-set Cassandra value.
Trait Implementations
impl Debug for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IntoBytes for Value
[src]
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.