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 output unset and other empty; format support and URL
validity are not checked by this configuration type.
§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>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 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
impl Eq for FetcherOptions
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,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FetcherOptions
impl PartialEq for FetcherOptions
Source§impl PartialOrd for FetcherOptions
impl PartialOrd for FetcherOptions
impl StructuralPartialEq for FetcherOptions
Auto Trait Implementations§
impl Freeze for FetcherOptions
impl RefUnwindSafe for FetcherOptions
impl Send for FetcherOptions
impl Sync for FetcherOptions
impl Unpin for FetcherOptions
impl UnsafeUnpin for FetcherOptions
impl UnwindSafe for FetcherOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more