pub struct FetcherOptions {
pub other: Vec<String>,
pub output: Option<String>,
}Expand description
Output-format selection and additional arguments for a Fetcher.
The URL is supplied separately by the implementation’s invocation API.
Default leaves optional fields unset and other empty; format support and
URL validity are not checked by this configuration type. A host can flatten
crate::CachingOptions, crate::FilteringOptions, and
crate::TimingOptions alongside this type for shared caching, output
filtering, and execution timing arguments.
§Examples
use asimov_patterns::FetcherOptions;
let options = FetcherOptions::builder()
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments placed after generated options and before the URL.
Each string is one literal argument, without shell expansion. The runner
supplies the URL separately; do not duplicate it here. See crate::programs.
output: Option<String>The output format.
RDF serialization passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified program default is jsonl.
This names a serialization, not a file or a raw-response retrieval mode.
Implementations§
Source§impl FetcherOptions
impl FetcherOptions
Sourcepub fn builder() -> FetcherOptionsBuilder
pub fn builder() -> FetcherOptionsBuilder
Create an instance of FetcherOptions using the builder syntax
Trait Implementations§
Source§impl Args for FetcherOptions
Available on crate feature clap only.
impl Args for FetcherOptions
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 FetcherOptions
impl Clone for FetcherOptions
Source§impl Debug for FetcherOptions
impl Debug for FetcherOptions
Source§impl Default for FetcherOptions
impl Default for FetcherOptions
Source§impl<'de> Deserialize<'de> for FetcherOptions
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FetcherOptions
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FetcherOptions
Source§impl FromArgMatches for FetcherOptions
Available on crate feature clap only.
impl FromArgMatches for FetcherOptions
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.Source§impl Hash for FetcherOptions
impl Hash for FetcherOptions
Source§impl Ord for FetcherOptions
impl Ord for FetcherOptions
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FetcherOptions
impl PartialEq for FetcherOptions
Source§impl PartialOrd for FetcherOptions
impl PartialOrd for FetcherOptions
Source§impl Serialize for FetcherOptions
Available on crate feature serde only.
impl Serialize for FetcherOptions
serde only.