pub struct RequestBaseArgs {
pub jq: Option<String>,
pub python: Option<String>,
pub timeout: Option<u64>,
pub max_tokens: Option<u64>,
}Expand description
Clap mirror of RequestBase, #[command(flatten)]-ed into
every transform-capable leaf’s Args.
Fields§
§jq: Option<String>jq filter applied to the JSON output. Ignored when –python is also set — python overrides jq.
python: Option<String>Python transform applied to the JSON output. Overrides –jq when both are provided.
timeout: Option<u64>Wall-clock execution cap (humantime: 30s, 5m, 1h30m).
Omit for uncapped.
max_tokens: Option<u64>Response token budget. Must be >= 1 if set (omit the flag
entirely for unlimited).
Trait Implementations§
Source§impl Args for RequestBaseArgs
impl Args for RequestBaseArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl From<RequestBaseArgs> for RequestBase
impl From<RequestBaseArgs> for RequestBase
Source§fn from(args: RequestBaseArgs) -> Self
fn from(args: RequestBaseArgs) -> Self
Converts to this type from the input type.
Source§impl FromArgMatches for RequestBaseArgs
impl FromArgMatches for RequestBaseArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for RequestBaseArgs
impl RefUnwindSafe for RequestBaseArgs
impl Send for RequestBaseArgs
impl Sync for RequestBaseArgs
impl Unpin for RequestBaseArgs
impl UnsafeUnpin for RequestBaseArgs
impl UnwindSafe for RequestBaseArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more