Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

ArgMatches → HTTP request dispatch

Takes parsed clap matches and the matching ApiOperation, constructs an HTTP request, and returns the response.

§Two-phase dispatch

PreparedRequest::from_operation builds a fully resolved request that can be inspected (dry-run, verbose logging) before PreparedRequest::send actually transmits it. The convenience function dispatch chains both steps for callers that don’t need the intermediate representation.

Structs§

PreparedRequest
A fully resolved HTTP request ready to be sent or inspected.

Enums§

Auth
Authentication method for API requests.
ResolvedAuth
Owned authentication resolved from Auth.

Functions§

dispatch
Execute an API operation based on clap matches.