Added name query to accounts and updated query handling.

This commit is contained in:
2026-09-27 10:32:08 +02:00
parent bb58e3fd77
commit d219d63dca
10 changed files with 74 additions and 4 deletions
+10
View File
@@ -15,6 +15,15 @@ pub struct Query {
pub offset: Option<u64>,
}
impl Default for Query {
fn default() -> Self {
Self {
limit: None,
offset: None,
}
}
}
impl TryFrom<Query> for db::Query {
type Error = QueryConversionError;
@@ -28,6 +37,7 @@ impl TryFrom<Query> for db::Query {
.offset
.map(|o| i64::try_from(o).map_err(|_| QueryConversionError::Offset(o)))
.transpose()?,
..Default::default()
})
}
}