| 23 | /// Information about an UP error. |
| 24 | #[derive(Debug, serde::Deserialize)] |
| 25 | pub struct ErrorSpec { |
| 26 | pub id: u64, |
| 27 | pub name: &'static str, |
| 28 | #[allow(dead_code)] |
| 29 | pub description: &'static str, |
| 30 | #[serde(default)] |
| 31 | #[allow(dead_code)] |
| 32 | pub obsolete: bool, |
| 33 | } |
| 34 | |
| 35 | /// Get the specification for a given error by its ID. |
| 36 | pub fn error_spec_by_id(id: u64) -> Option<&'static ErrorSpec> { |
nothing calls this directly
no outgoing calls
no test coverage detected