pub trait Row {
// Required method
fn try_get(&self, column: &str) -> Result<Option<SqlValue>, OrmError>;
// Provided methods
fn get_required(&self, column: &str) -> Result<SqlValue, OrmError> { ... }
fn try_get_typed<T: SqlTypeMapping>(
&self,
column: &str,
) -> Result<Option<T>, OrmError> { ... }
fn get_required_typed<T: SqlTypeMapping>(
&self,
column: &str,
) -> Result<T, OrmError> { ... }
}Expand description
Row abstraction used by the core mapping contracts without depending on Tiberius.
Required Methods§
Provided Methods§
fn get_required(&self, column: &str) -> Result<SqlValue, OrmError>
fn try_get_typed<T: SqlTypeMapping>( &self, column: &str, ) -> Result<Option<T>, OrmError>
fn get_required_typed<T: SqlTypeMapping>( &self, column: &str, ) -> Result<T, OrmError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.