Trait butane::DataResult [−][src]
pub trait DataResult { type DBO: DataObject; const COLUMNS: &'static [Column]; fn from_row(row: &(dyn BackendRow + 'a)) -> Result<Self, Error>; fn query() -> Query<Self>; }
Expand description
A type which may be the result of a database query.
Every result type must have a corresponding object type and the columns of the result type must be a subset of the columns of the object type. The purpose of a result type which is not also an object type is to allow a query to retrieve a subset of an object’s columns.
Associated Types
type DBO: DataObject
[src]
type DBO: DataObject
[src]Corresponding object type.
Associated Constants
const COLUMNS: &'static [Column]
[src]Required methods
fn from_row(row: &(dyn BackendRow + 'a)) -> Result<Self, Error>
[src]