use deserializing properly

This commit is contained in:
2025-08-14 23:42:05 +02:00
parent 352ac3bd1a
commit 8daa4f0863
6 changed files with 382 additions and 357 deletions

View File

@@ -176,6 +176,13 @@ pub enum PublicationDemographicError {
InvalidValue,
}
#[derive(Error, Debug)]
pub enum ParseLangErr {
#[error("found invalid lang")]
Invalid,
}
#[derive(Debug, Error, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApiError {