pub struct WriterOptions {
pub other: Vec<String>,
pub input: Option<String>,
pub output: Option<String>,
}Expand description
RDF input and export formats for a Writer, plus additional arguments.
Default leaves formats unset and other empty, delegating defaults to
the program. Select an explicit output format when the consumer requires
a particular representation. Format selection itself does not convert data
or establish that the selected program supports that format.
§Examples
use asimov_patterns::WriterOptions;
let options = WriterOptions::builder()
.input("jsonl")
.output("auto")
.build();Fields§
§other: Vec<String>Additional arguments, including optional RDF input and exported output files.
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>RDF input serialization passed as --input=FORMAT (-i in the CLI).
None omits the option; the specified program default is jsonl.
This is a format token, not an input filename.
output: Option<String>Export format passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified default is auto, requesting the
program’s documented format-selection policy. auto is not itself a
serialization. This field selects neither an output file nor capture behavior.
Implementations§
Source§impl WriterOptions
impl WriterOptions
Sourcepub fn builder() -> WriterOptionsBuilder
pub fn builder() -> WriterOptionsBuilder
Create an instance of WriterOptions using the builder syntax