pub trait QueryValue: Sized {
// Required method
fn from_view(view: &ViewValue) -> Result<Self, ZeroValueError>;
}Expand description
What a query materializes to: its rows (Vec<Row>, Option<Row> after
one()), or the value of an aggregate, such as the i64 of count().
Required Methods§
Sourcefn from_view(view: &ViewValue) -> Result<Self, ZeroValueError>
fn from_view(view: &ViewValue) -> Result<Self, ZeroValueError>
Reads the query’s result from its view.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl QueryValue for i64
The value of count().
impl QueryValue for i64
The value of count().