MCPcopy Create free account
hub / github.com/elastic/devfiler / ErrorSpec

Class ErrorSpec

src/storage/errorspec.rs:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/// Information about an UP error.
24#[derive(Debug, serde::Deserialize)]
25pub 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.
36pub fn error_spec_by_id(id: u64) -> Option<&'static ErrorSpec> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected