identity_core 0.1.0

An implementation of the Decentralized Identifiers (DID) standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error as DeriveError;

use pest::error::Error as PestError;

use crate::did_parser::Rule;

/// Crate Error type.
#[derive(Debug, DeriveError)]
pub enum Error {
    #[error("Format Error: {0}")]
    FormatError(String),
    #[error("Parse Error: {0}")]
    ParseError(#[from] PestError<Rule>),
}

/// Crate result type.
pub type Result<T> = std::result::Result<T, Error>;