redact-paperasse-core 0.1.15

Ingest -> detect -> redact pipeline: image/PDF/text in, redacted image/PDF/text/markdown out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
pub enum EngineError {
    #[error("ingestion failed: {0}")]
    Ingest(String),

    #[error("redaction failed: {0}")]
    Redact(String),

    #[cfg(feature = "tier-b")]
    #[error("Presidio request failed: {0}")]
    Presidio(#[from] reqwest::Error),

    #[error("unsupported input for this operation: {0}")]
    Unsupported(String),
}