pub struct EmitterOptions {
pub other: Vec<String>,
pub output: Option<String>,
}Expand description
Output-format selection and additional arguments for an Emitter.
Default requests the program’s defaults by leaving output unset and
other empty. These options do not define the generated values, bound the
execution time, or validate the selected program’s capabilities.
§Examples
use asimov_patterns::EmitterOptions;
let options = EmitterOptions::builder()
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments appended after the generated output-format option.
Each string is one literal argument, without shell expansion. The
standard pattern has no positional operands; extensions require support
from the selected program. See crate::programs.
output: Option<String>RDF serialization passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified program default is jsonl.
This does not select a file, capture policy, or RDF mapping profile.
Implementations§
Source§impl EmitterOptions
impl EmitterOptions
Sourcepub fn builder() -> EmitterOptionsBuilder
pub fn builder() -> EmitterOptionsBuilder
Create an instance of EmitterOptions using the builder syntax
Trait Implementations§
Source§impl Args for EmitterOptions
Available on crate feature clap only.
impl Args for EmitterOptions
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 EmitterOptions
impl Clone for EmitterOptions
Source§impl Debug for EmitterOptions
impl Debug for EmitterOptions
Source§impl Default for EmitterOptions
impl Default for EmitterOptions
impl Eq for EmitterOptions
Source§impl FromArgMatches for EmitterOptions
Available on crate feature clap only.
impl FromArgMatches for EmitterOptions
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.