pub struct ReaderOptions {
pub other: Vec<String>,
pub input: Option<String>,
pub output: Option<String>,
}Expand description
Source and RDF output formats for a Reader, plus additional arguments.
Default leaves formats unset and other empty, delegating detection and
output defaults to the program. Configuration does not perform detection,
validate format support, or transform the input.
§Examples
use asimov_patterns::ReaderOptions;
let options = ReaderOptions::builder()
.input("auto")
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments, including optional source and RDF output file operands.
The wrapper appends these after generated format options. Put extension
options before files; each string is one literal argument. See
crate::programs for operand ordering and standard-stream selection.
input: Option<String>Source format passed as --input=FORMAT (-i in the CLI).
None omits the option; the specified default is auto, requesting the
program’s documented detection procedure. An explicit concrete format
takes precedence over detection. This is not an input filename.
output: Option<String>RDF serialization passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified program default is jsonl.
This selects a serialization, not an output file or a source-to-RDF mapping.
Implementations§
Source§impl ReaderOptions
impl ReaderOptions
Sourcepub fn builder() -> ReaderOptionsBuilder
pub fn builder() -> ReaderOptionsBuilder
Create an instance of ReaderOptions using the builder syntax