Public declaration syntax from forge-rs/crates/forge-identity/src/glyph/error.rs Original source SHA-256: 543f458b5a772bb2fd0f0a9d79e4e8bba9bd7dfb2a6a491cad4329689d8b24d6 Function bodies and constant values are omitted. This is not the complete implementation. Source line 25 #[derive(Debug, Error)] pub enum GlyphError { /// The provided DID string is malformed or unparseable. #[error("invalid DID '{did}': {reason}")] InvalidDid { /// The DID string that failed validation. did: String, /// Why the DID is invalid. reason: String, }, /// The entity kind string does not map to a known glyph kind. #[error("invalid glyph entity kind '{kind}': expected one of hmr, mhr, enr, agent, org")] InvalidKind { /// The kind string that was not recognized. kind: String, }, /// Payload encoding failed. #[error("glyph payload encoding failed for DID '{did}': {reason}")] PayloadEncodingFailed { /// The DID being encoded. did: String, /// Why encoding failed. reason: String, }, /// Rendering the glyph to the requested output format failed. #[error("glyph render failed: {reason}")] RenderFailed { /// Why rendering failed. reason: String, }, } Source line 60 pub type GlyphResult = Result;