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 moreSource§impl Debug for OutputConfig
impl Debug for OutputConfig
Source§impl Default for OutputConfig
impl Default for OutputConfig
Source§impl<'de> Deserialize<'de> for OutputConfig
impl<'de> Deserialize<'de> for OutputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.