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

Traits