Can I tell sqlx to ignore a field in a query I pass to query_as!()?
struct User {
a:String
}
...
let users = sqlx::query_as(User,
r#"
select a, b from my_table
"#
).fetch_all(pool).await;
(obviously) results in:
error[E0560]: struct `User` has no field named `b`
Without resorting to a custom from_row(), is there a cleaner tag perhaps to "skip" like there is on the receiving struct side? (per https://docs.rs/sqlx/latest/sqlx/trait.FromRow.html).
[edit: the original sql was easily edited to avoid the question altogether; I'll leave the question since I'm still curious if there's an sqlx secret I can't find]