pub struct ResolverOptions {
pub other: Vec<String>,
pub limit: Option<usize>,
}Expand description
Result-count selection and additional arguments for a Resolver.
The URI is supplied separately by the runner. Default leaves limit
unset and other empty, imposing no caller-requested limit. The standard
output framing is fixed; this type has no output-format field.
§Examples
use asimov_patterns::ResolverOptions;
let options = ResolverOptions::builder()
.limit(100)
.build();Fields§
§other: Vec<String>Additional arguments placed after the generated limit and before the URI.
Each string is one literal argument, without shell expansion. The runner
supplies the URI separately; do not duplicate it here. See crate::programs.
limit: Option<usize>Maximum number of output URLs, passed as --limit=COUNT (-n in the CLI).
None imposes no caller-requested limit; Some(0) requests no results.
A zero limit may still trigger validation or resource-availability checks.
The runner forwards a decimal integer without checking the program’s
supported range; this is not a byte limit or a timeout.
Implementations§
Source§impl ResolverOptions
impl ResolverOptions
Sourcepub fn builder() -> ResolverOptionsBuilder
pub fn builder() -> ResolverOptionsBuilder
Create an instance of ResolverOptions using the builder syntax
Trait Implementations§
Source§impl Args for ResolverOptions
Available on crate feature clap only.
impl Args for ResolverOptions
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 ResolverOptions
impl Clone for ResolverOptions
Source§impl Debug for ResolverOptions
impl Debug for ResolverOptions
Source§impl Default for ResolverOptions
impl Default for ResolverOptions
impl Eq for ResolverOptions
Source§impl FromArgMatches for ResolverOptions
Available on crate feature clap only.
impl FromArgMatches for ResolverOptions
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.