pub struct MatcherOptions {
pub other: Vec<String>,
pub input: Option<String>,
pub output: Option<String>,
}Expand description
Input/output formats and additional arguments for a Matcher.
Default leaves formats unset and other empty. The process wrapper omits
unset flags and lets the program apply its defaults. This type selects no
matching algorithm and does not validate or transform RDF.
§Examples
use asimov_patterns::MatcherOptions;
let options = MatcherOptions::builder()
.input("jsonl")
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments, including optional input and 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>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>RDF match-result serialization passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified program default is jsonl.
This selects neither an output file nor the vocabulary describing matches.
Implementations§
Source§impl MatcherOptions
impl MatcherOptions
Sourcepub fn builder() -> MatcherOptionsBuilder
pub fn builder() -> MatcherOptionsBuilder
Create an instance of MatcherOptions using the builder syntax
Trait Implementations§
Source§impl Args for MatcherOptions
Available on crate feature clap only.
impl Args for MatcherOptions
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 MatcherOptions
impl Clone for MatcherOptions
Source§impl Debug for MatcherOptions
impl Debug for MatcherOptions
Source§impl Default for MatcherOptions
impl Default for MatcherOptions
impl Eq for MatcherOptions
Source§impl FromArgMatches for MatcherOptions
Available on crate feature clap only.
impl FromArgMatches for MatcherOptions
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.