#[derive(FromRow)]
{
// Attributes available to this derive:
#[from_row]
}
Expand description
Derive FromRow for structs with named fields.
§Field attributes
#[from_row(rename = "col")]— use a different column name#[from_row(skip)]— skip the field, useDefault::default()#[from_row(default)]— useDefault::default()if column is NULL or missing#[from_row(json)]— deserialize a JSON/JSONB column via serde#[from_row(try_from = "SourceType")]— decode as SourceType, thenTryFromconvert#[from_row(flatten)]— callFromRow::from_rowon a nested struct