Expand description
Extension traits for working with RowStream
s.
Using these extension traits, RowStream
s can be turned into Stream
s producing
Extract
able 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
Stream
producingT
s from aRowStream
. - Extract
Stream Mut - A
Stream
producingT
s from aPin<&mut RowStream>
.
Traits§
- RowStream
Extract Ext - Extension trait for extracting from a
RowStream
.