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