Trait scylla_cql::frame::value::Value
source · pub trait Value {
// Required method
fn serialize(&self, buf: &mut Vec<u8>) -> Result<(), ValueTooBig>;
}
Expand description
Every value being sent in a query must implement this trait serialize() should write the Value as bytes to the provided buffer
Required Methods§
Implementations on Foreign Types§
source§impl Value for BigDecimal
impl Value for BigDecimal
source§impl<T: Value> Value for Option<T>
impl<T: Value> Value for Option<T>
Every Option<T>
can be serialized as None -> NULL, Some(val) -> val.serialize()