pub struct OutputConfig {Show 13 fields
pub mode: OutputMode,
pub output_directory: PathBuf,
pub formats: Vec<FileFormat>,
pub compression: CompressionConfig,
pub batch_size: usize,
pub include_acdoca: bool,
pub include_bseg: bool,
pub partition_by_period: bool,
pub partition_by_company: bool,
pub numeric_mode: NumericMode,
pub export_layout: ExportLayout,
pub sap: SapExportSettings,
pub saft: SaftExportSettings,
}Expand description
Output configuration.
Fields§
§mode: OutputModeOutput mode
output_directory: PathBufOutput directory
formats: Vec<FileFormat>File formats to generate. Accepts both formats: [json, csv]
(canonical YAML) and exportFormat: "json" / exportFormats: ["json", "csv"] (SDK-style camelCase). The single-string
exportFormat form is deserialised via one_or_many_formats
so SDK clients submitting exportFormat: "json" hit the right
code path instead of silently falling through to the Parquet
default — the bug the SDK team flagged in v4.4.0.
compression: CompressionConfigCompression settings
batch_size: usizeBatch size for writes
include_acdoca: boolInclude ACDOCA format
include_bseg: boolInclude BSEG format
partition_by_period: boolPartition by fiscal period
partition_by_company: boolPartition by company code
numeric_mode: NumericModeNumeric serialization mode for JSON output.
“string” (default): decimals as "1729237.30" — lossless precision.
“native”: decimals as 1729237.30 — friendlier for pandas/analytics.
export_layout: ExportLayoutJSON export layout for journal entries and document flows.
“nested” (default): {"header": {...}, "lines": [...]} — natural ERP structure.
“flat”: header fields repeated on every line — friendlier for analytics/ML.
Accepts both export_layout (canonical / YAML) and exportLayout
(camelCase / SDK JSON) so SDKs that follow camelCase conventions
hit the flat path rather than silently getting the Nested default.
Before v3.1.1 the missing camelCase alias meant SDK requests with
exportLayout: "flat" were silently ignored, which SDK operators
reported as “flat hangs generation” (the job completed with Nested
layout, but manifests didn’t match the expected flat shape).
sap: SapExportSettingsSAP / HANA export settings (only read when the CLI
--export-format sap flag is passed). Empty by default so
existing configs don’t change behaviour; dialect defaults to
classic for backward compatibility.
saft: SaftExportSettingsSAF-T (Standard Audit File for Tax) export settings. Read when
the CLI --export-format saft flag is passed. Defaults to
Portugal (pt) because the PT variant is the most mature and
cross-jurisdiction compatible. Override with
jurisdiction: pl|ro|no|lu for the other supported countries.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more