Struct cassandra_cpp::Tuple
source · pub struct Tuple(_);
Expand description
A tuple of values.
Implementations§
source§impl Tuple
impl Tuple
sourcepub fn new_from_data_type(data_type: DataType) -> Tuple
pub fn new_from_data_type(data_type: DataType) -> Tuple
Creates a new tuple from an existing data type.
sourcepub fn set_null(&mut self, index: usize) -> Result<&mut Self>
pub fn set_null(&mut self, index: usize) -> Result<&mut Self>
Sets an null in a tuple at the specified index.
sourcepub fn set_int8(&mut self, index: usize, value: i8) -> Result<&mut Self>
pub fn set_int8(&mut self, index: usize, value: i8) -> Result<&mut Self>
Sets a “tinyint” in a tuple at the specified index.
sourcepub fn set_int16(&mut self, index: usize, value: i16) -> Result<&mut Self>
pub fn set_int16(&mut self, index: usize, value: i16) -> Result<&mut Self>
Sets an “smallint” in a tuple at the specified index.
sourcepub fn set_int32(&mut self, index: usize, value: i32) -> Result<&mut Self>
pub fn set_int32(&mut self, index: usize, value: i32) -> Result<&mut Self>
Sets an “int” in a tuple at the specified index.
sourcepub fn set_uint32(&mut self, index: usize, value: u32) -> Result<&mut Self>
pub fn set_uint32(&mut self, index: usize, value: u32) -> Result<&mut Self>
Sets a “date” in a tuple at the specified index.
sourcepub fn set_int64(&mut self, index: usize, value: i64) -> Result<&mut Self>
pub fn set_int64(&mut self, index: usize, value: i64) -> Result<&mut Self>
Sets a “bigint”, “counter”, “timestamp” or “time” in a tuple at the specified index.
sourcepub fn set_float(&mut self, index: usize, value: f32) -> Result<&mut Self>
pub fn set_float(&mut self, index: usize, value: f32) -> Result<&mut Self>
Sets a “float” in a tuple at the specified index.
sourcepub fn set_double(&mut self, index: usize, value: f64) -> Result<&mut Self>
pub fn set_double(&mut self, index: usize, value: f64) -> Result<&mut Self>
Sets a “double” in a tuple at the specified index.
sourcepub fn set_bool(&mut self, index: usize, value: bool) -> Result<&mut Self>
pub fn set_bool(&mut self, index: usize, value: bool) -> Result<&mut Self>
Sets a “boolean” in a tuple at the specified index.
sourcepub fn set_string<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<String>,
pub fn set_string<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<String>,
Sets an “ascii”, “text” or “varchar” in a tuple at the specified index.
sourcepub fn set_bytes(&mut self, index: usize, value: Vec<u8>) -> Result<&mut Self>
pub fn set_bytes(&mut self, index: usize, value: Vec<u8>) -> Result<&mut Self>
Sets a “blob”, “varint” or “custom” in a tuple at the specified index.
sourcepub fn set_uuid<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<Uuid>,
pub fn set_uuid<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<Uuid>,
Sets a “uuid” or “timeuuid” in a tuple at the specified index.
sourcepub fn set_inet(&mut self, index: usize, value: IpAddr) -> Result<&mut Self>
pub fn set_inet(&mut self, index: usize, value: IpAddr) -> Result<&mut Self>
Sets an “inet” in a tuple at the specified index.
sourcepub fn set_collection<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<Set>,
pub fn set_collection<S>(&mut self, index: usize, value: S) -> Result<&mut Self>where
S: Into<Set>,
Sets a “list”, “map” or “set” in a tuple at the specified index.