pub struct ResolverOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ResolverOptionsBuilder<S>
impl<S: State> ResolverOptionsBuilder<S>
Sourcepub fn build(self) -> ResolverOptionswhere
S: IsComplete,
pub fn build(self) -> ResolverOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn limit(self, value: usize) -> ResolverOptionsBuilder<SetLimit<S>>where
S::Limit: IsUnset,
pub fn limit(self, value: usize) -> ResolverOptionsBuilder<SetLimit<S>>where
S::Limit: IsUnset,
Optional (Some / Option setters).
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.
Sourcepub fn maybe_limit(
self,
value: Option<usize>,
) -> ResolverOptionsBuilder<SetLimit<S>>where
S::Limit: IsUnset,
pub fn maybe_limit(
self,
value: Option<usize>,
) -> ResolverOptionsBuilder<SetLimit<S>>where
S::Limit: IsUnset,
Optional (Some / Option setters).
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.
Source§impl<S: State> ResolverOptionsBuilder<S>
impl<S: State> ResolverOptionsBuilder<S>
Sourcepub fn other(self, flag: impl Into<String>) -> Self
pub fn other(self, flag: impl Into<String>) -> Self
Appends one literal argument to ResolverOptions::other, preserving order.
Sourcepub fn maybe_other(self, flag: Option<impl Into<String>>) -> Self
pub fn maybe_other(self, flag: Option<impl Into<String>>) -> Self
Appends a present argument to ResolverOptions::other; None adds nothing.