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