pub struct AdapterOptions {
pub other: Vec<String>,
pub output: Option<String>,
}Expand description
Output-format selection and additional arguments for an Adapter.
Default leaves the format unset and additional arguments empty. The
process wrapper omits unset options, delegating defaults to the program;
building this value does not parse the query or validate format support.
§Examples
use asimov_patterns::AdapterOptions;
let options = AdapterOptions::builder()
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments, in order, including an optional query-file operand.
The process wrapper appends these after --output. Each string is one
literal argument, without shell expansion; 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 selects a format, not an output filename or capture policy.
Implementations§
Source§impl AdapterOptions
impl AdapterOptions
Sourcepub fn builder() -> AdapterOptionsBuilder
pub fn builder() -> AdapterOptionsBuilder
Create an instance of AdapterOptions using the builder syntax
Trait Implementations§
Source§impl Clone for AdapterOptions
impl Clone for AdapterOptions
Source§impl Debug for AdapterOptions
impl Debug for AdapterOptions
Source§impl Default for AdapterOptions
impl Default for AdapterOptions
impl Eq for AdapterOptions
Source§impl Hash for AdapterOptions
impl Hash for AdapterOptions
Source§impl Ord for AdapterOptions
impl Ord for AdapterOptions
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 AdapterOptions
impl PartialEq for AdapterOptions
Source§impl PartialOrd for AdapterOptions
impl PartialOrd for AdapterOptions
impl StructuralPartialEq for AdapterOptions
Auto Trait Implementations§
impl Freeze for AdapterOptions
impl RefUnwindSafe for AdapterOptions
impl Send for AdapterOptions
impl Sync for AdapterOptions
impl Unpin for AdapterOptions
impl UnsafeUnpin for AdapterOptions
impl UnwindSafe for AdapterOptions
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