pub struct IndexerOptions {
pub other: Vec<String>,
pub input: Option<String>,
}Expand description
Input-format selection and additional arguments for an Indexer.
Default leaves input unset and other empty. It does not constitute
a complete command-line invocation: the required index destination must
still be supplied. The example configures the runner’s stdin-input form.
§Examples
use asimov_patterns::IndexerOptions;
let options = IndexerOptions::builder()
.input("jsonl")
.other("./catalog.index")
.build();Fields§
§other: Vec<String>Additional arguments, including the required index-destination operand.
The process wrapper appends these after --input. Put extension options
first, then either the index path alone or input path followed by index
path. Each string is one literal argument; see crate::programs.
input: Option<String>RDF serialization passed as --input=FORMAT (-i in the CLI).
None omits the option; the specified program default is jsonl.
This selects neither the input file nor the persistent index format.
Implementations§
Source§impl IndexerOptions
impl IndexerOptions
Sourcepub fn builder() -> IndexerOptionsBuilder
pub fn builder() -> IndexerOptionsBuilder
Create an instance of IndexerOptions using the builder syntax
Trait Implementations§
Source§impl Args for IndexerOptions
Available on crate feature clap only.
impl Args for IndexerOptions
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 IndexerOptions
impl Clone for IndexerOptions
Source§impl Debug for IndexerOptions
impl Debug for IndexerOptions
Source§impl Default for IndexerOptions
impl Default for IndexerOptions
impl Eq for IndexerOptions
Source§impl FromArgMatches for IndexerOptions
Available on crate feature clap only.
impl FromArgMatches for IndexerOptions
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.