Struct cassandra_cpp::Field
[−]
[src]
pub struct Field { pub name: String, pub value: Value, }
A field's metadata
Fields
name: String
The field's name
value: Value
The field's value
Methods
impl Field
[src]
fn get_name(&self) -> String
Gets the name of this field
fn get_type(&self) -> ValueType
Gets the type of this field
fn get_inet(&self) -> Result<Inet>
Gets the value of an inet field
fn get_u32(&self, output: u32) -> Result<u32>
Gets the value of an u32 field
fn get_int8(&self, output: i8) -> Result<i8>
Gets the value of an i8 field
fn get_int16(&self, output: i16) -> Result<i16>
Gets the value of an i16 field
fn get_string(&self) -> Result<String>
Gets the value of an ASCII, Text, or Varchar field
fn get_int32(&self) -> Result<i32>
Gets the value of an i32 field
fn get_int64(&self) -> Result<i64>
Gets the value of an i64 field
fn get_float(&self) -> Result<f32>
Gets the value of a float field
fn get_double(&self) -> Result<f64>
Gets the value of a double field
fn get_bool(&self) -> Result<bool>
Gets the value of a bool field
fn get_uuid(&self) -> Result<Uuid>
Gets the value of a uuid field
fn map_iter(&self) -> Result<MapIterator>
Gets the value of a map field as an iterator
fn set_iter(&self) -> Result<SetIterator>
Gets the value of a set field as an iterator