pub struct DataRow { /* private fields */ }
Expand description
A row of Data
Implementations§
Source§impl DataRow
impl DataRow
pub fn new(row: Vec<Data>) -> Self
Sourcepub fn get_data(&self, column_index: usize) -> Result<&Data>
pub fn get_data(&self, column_index: usize) -> Result<&Data>
Returns a Data
entry given a column index
Sourcepub fn get_int(&self, column_index: usize) -> Result<i32>
pub fn get_int(&self, column_index: usize) -> Result<i32>
Convenience method that returns a int entry by calling Data::get_int()
given a column index
Sourcepub fn get_long(&self, column_index: usize) -> Result<i64>
pub fn get_long(&self, column_index: usize) -> Result<i64>
Convenience method that returns a long entry by calling Data::get_long()
given a column index
Sourcepub fn get_float(&self, column_index: usize) -> Result<f32>
pub fn get_float(&self, column_index: usize) -> Result<f32>
Convenience method that returns a float entry by calling Data::get_float()
given a column index
Sourcepub fn get_double(&self, column_index: usize) -> Result<f64>
pub fn get_double(&self, column_index: usize) -> Result<f64>
Convenience method that returns a double entry by calling Data::get_double()
given a column index
Sourcepub fn get_boolean(&self, column_index: usize) -> Result<bool>
pub fn get_boolean(&self, column_index: usize) -> Result<bool>
Convenience method that returns a boolean entry by calling Data::get_boolean()
given a column index
Sourcepub fn get_timestamp(&self, column_index: usize) -> Result<DateTime<Utc>>
pub fn get_timestamp(&self, column_index: usize) -> Result<DateTime<Utc>>
Convenience method that returns a timestamp entry by calling Data::get_timestamp()
given a column index
Sourcepub fn get_string(&self, column_index: usize) -> Result<&str>
pub fn get_string(&self, column_index: usize) -> Result<&str>
Convenience method that returns a string entry by calling Data::get_string()
given a column index
Sourcepub fn get_json(&self, column_index: usize) -> Result<&Value>
pub fn get_json(&self, column_index: usize) -> Result<&Value>
Convenience method that returns a json entry by calling Data::get_json()
given a column index