vrtb-core 0.1.0

Core traits, error types and comparison planning for veritable, a cross-database table comparison tool
Documentation
use clap::ValueEnum;

// Output format for comparison results. Lives in core (rather than the CLI) so
// the engine-agnostic conformance logic can render diffs without core depending
// on the CLI crate — the CLI re-exports it as its clap arg type.
#[derive(Clone, Copy, Debug, ValueEnum)]
pub enum Format {
    Human,
    Summary,
    Json,
    Jsonl,
}

impl std::fmt::Display for Format {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let s = match self {
            Format::Human => "human",
            Format::Summary => "summary",
            Format::Json => "json",
            Format::Jsonl => "jsonl",
        };
        write!(f, "{s}")
    }
}