pub struct CallOptions {
pub auth_type: String,
pub username: String,
pub no_auth: bool,
pub verbose: bool,
pub trace: bool,
pub timeout_secs: u64,
pub pagination_token: String,
}Expand description
Consumer-facing options for shortcut methods.
Exposes only the fields relevant to crate consumers, hiding internal
request construction details like method, endpoint, headers, and data.
Fields§
§auth_type: StringExplicit auth scheme — "oauth1", "oauth2", "app", or empty for
auto-detect.
username: StringOAuth2 username for the active app. Empty selects the active app’s first stored OAuth2 token.
no_auth: boolSkip auth-header attachment entirely.
verbose: boolEmit verbose request / response diagnostics.
trace: boolEmit the X-B3-Flags: 1 header for upstream tracing.
timeout_secs: u64Per-call HTTP timeout in seconds. Mirrors the --timeout flag /
XURL_TIMEOUT env var. Used by the streaming and per-call refresh
paths; non-streaming requests inherit the timeout that was passed to
ApiClient::new.
pagination_token: StringCursor / pagination_token query parameter for list endpoints.
Threaded in from the global --cursor flag. List shortcuts append
it to the URL when non-empty; non-paginated endpoints ignore it.
Trait Implementations§
Source§impl Clone for CallOptions
impl Clone for CallOptions
Source§fn clone(&self) -> CallOptions
fn clone(&self) -> CallOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more