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
Trait Implementations§
Source§impl Args for ReaderOptions
Available on crate feature clap only.
impl Args for ReaderOptions
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 ReaderOptions
impl Clone for ReaderOptions
Source§impl Debug for ReaderOptions
impl Debug for ReaderOptions
Source§impl Default for ReaderOptions
impl Default for ReaderOptions
impl Eq for ReaderOptions
Source§impl FromArgMatches for ReaderOptions
Available on crate feature clap only.
impl FromArgMatches for ReaderOptions
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.