Expand description
Extension traits for working with RowStreams.
Using these extension traits, RowStreams can be turned into Streams producing
Extractable types.
§Examples
#[derive(Columns, Extract)]
struct User {
id: i32,
name: String,
}
async fn extract_users(i: RowStream) -> Result<Vec<User>, Error> {
i.extract().try_collect().await
}Structs§
- Extract
Stream - A
StreamproducingTs from aRowStream. - Extract
Stream Mut - A
StreamproducingTs from aPin<&mut RowStream>.
Traits§
- RowStream
Extract Ext - Extension trait for extracting from a
RowStream.