use deserializing properly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user