pub trait RangoRow {
Show 15 methods
// Required methods
fn get_bool(&self, col: &str) -> Result<bool, RowError>;
fn get_i16(&self, col: &str) -> Result<i16, RowError>;
fn get_i32(&self, col: &str) -> Result<i32, RowError>;
fn get_i64(&self, col: &str) -> Result<i64, RowError>;
fn get_f32(&self, col: &str) -> Result<f32, RowError>;
fn get_f64(&self, col: &str) -> Result<f64, RowError>;
fn get_decimal(&self, col: &str) -> Result<Decimal, RowError>;
fn get_string(&self, col: &str) -> Result<String, RowError>;
fn get_bytes(&self, col: &str) -> Result<Vec<u8>, RowError>;
fn get_uuid(&self, col: &str) -> Result<Uuid, RowError>;
fn get_datetime(&self, col: &str) -> Result<DateTime<Utc>, RowError>;
fn get_date(&self, col: &str) -> Result<NaiveDate, RowError>;
fn get_time(&self, col: &str) -> Result<NaiveTime, RowError>;
fn get_json(&self, col: &str) -> Result<Value, RowError>;
fn is_null(&self, col: &str) -> bool;
}Expand description
Backend-agnostic row abstraction. Implemented by rango-orm-postgres (and future backends) for their native row type.
Required Methods§
fn get_bool(&self, col: &str) -> Result<bool, RowError>
fn get_i16(&self, col: &str) -> Result<i16, RowError>
fn get_i32(&self, col: &str) -> Result<i32, RowError>
fn get_i64(&self, col: &str) -> Result<i64, RowError>
fn get_f32(&self, col: &str) -> Result<f32, RowError>
fn get_f64(&self, col: &str) -> Result<f64, RowError>
fn get_decimal(&self, col: &str) -> Result<Decimal, RowError>
fn get_string(&self, col: &str) -> Result<String, RowError>
fn get_bytes(&self, col: &str) -> Result<Vec<u8>, RowError>
fn get_uuid(&self, col: &str) -> Result<Uuid, RowError>
fn get_datetime(&self, col: &str) -> Result<DateTime<Utc>, RowError>
fn get_date(&self, col: &str) -> Result<NaiveDate, RowError>
fn get_time(&self, col: &str) -> Result<NaiveTime, RowError>
fn get_json(&self, col: &str) -> Result<Value, RowError>
fn is_null(&self, col: &str) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".