openlegends_server/api/server/about/response/
error.rs

1use std::fmt::{Display, Formatter, Result};
2
3#[derive(Debug)]
4pub enum Error {
5    Json(serde_json::Error),
6}
7
8impl Display for Error {
9    fn fmt(&self, f: &mut Formatter) -> Result {
10        match self {
11            Self::Json(e) => write!(f, "JSON error: `{e}`"),
12        }
13    }
14}