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