vole_document/adapter/mod.rs
1//! Format adapters.
2//!
3//! An adapter proposes a reconstruction hypothesis. It never overrides the
4//! byte authority: a hypothesis is only admitted after it reproduces the exact
5//! source bytes and wins the complete-cost court.
6
7#[cfg(feature = "docx")]
8pub mod docx;
9#[cfg(feature = "epub")]
10pub mod epub;
11#[cfg(feature = "odt")]
12pub mod odt;
13pub mod opaque;
14#[cfg(feature = "package")]
15pub mod package;
16pub mod pdf;
17
18/// The source-format class decision for an input.
19///
20/// File extensions are hints, never authority. In Phase 1 every input is
21/// preserved by the opaque adapter, which is the unconditional exact floor.
22#[derive(Debug, Clone, Copy, PartialEq, Eq)]
23pub enum FormatDecision {
24 /// Unstructured bytes; preserved exactly by the opaque adapter.
25 Opaque,
26}