copybook-options
Configuration primitives for copybook codec behavior.
Overview
Defines the DecodeOptions and EncodeOptions structs that control record format, codepage,
JSON number mode, raw capture, zoned encoding preferences, and float format. These option
types are the shared configuration surface used by the codec and CLI layers.
Usage
use ;
let options = new
.with_format
.with_codepage
.with_json_number_mode
.with_threads;
Public API
DecodeOptions/EncodeOptions— Builder-pattern configuration structsRecordFormat—FixedorRDWJsonNumberMode—LosslessorNativeRawMode—Off,Record,Field,RecordRDWFloatFormat—IeeeBigEndianorIbmHexCodepage/UnmappablePolicy/ZonedEncodingFormat— Re-exported charset types
RawMode variants
| Variant | Description |
|---|---|
Off |
No raw payload captured (default) |
Record |
Capture record payload bytes in __raw_b64 |
RecordRDW |
Capture RDW header + payload bytes in __raw_b64 |
Field |
Capture per-field raw values in <FIELD_NAME>__raw_b64 |
License
AGPL-3.0-or-later