1 2 3 4 5 6 7 8 9 10 11 12
use thiserror::Error; pub type ExtractResult<T> = Result<T, ExtractError>; #[derive(Debug, Error)] pub enum ExtractError { #[error("parse error: {0}")] Parse(String), #[error("unsupported feature: {0}")] Unsupported(String), }