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
Trait Implementations§
Source§impl Args for WriterOptions
Available on crate feature clap only.
impl Args for WriterOptions
clap only.Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for WriterOptions
impl Clone for WriterOptions
Source§impl Debug for WriterOptions
impl Debug for WriterOptions
Source§impl Default for WriterOptions
impl Default for WriterOptions
impl Eq for WriterOptions
Source§impl FromArgMatches for WriterOptions
Available on crate feature clap only.
impl FromArgMatches for WriterOptions
clap only.Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.