[−][src]Trait butane_core::DataResult
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]
Corresponding object type.
Associated Constants
pub const COLUMNS: &'static [Column]
[src]
Required methods
pub fn from_row(row: Row) -> Result<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn query() -> Query<Self>
[src]
Create a blank query (matching all rows) for this type.