Skip to main content

FromRow

Derive Macro FromRow 

Source
#[derive(FromRow)]
{
    // Attributes available to this derive:
    #[bigquery]
}
Expand description

Derives standard library TryFrom for converting a BigQuery Row into a struct.

Structs with named fields match columns by field name (or via #[bigquery(rename = "new_name")]). Tuple structs match columns positionally by 0-based index.