pub struct AppContext<'a> {
pub site_name: &'a str,
pub manta_server_url: &'a str,
pub settings_hsm_group_name_opt: Option<&'a str>,
pub request_timeout_secs: Option<u64>,
pub settings: &'a Config,
}Expand description
Top-level CLI context, passed as &AppContext through CLI
handlers and commands.
Fields§
§site_name: &'a strSite name used to set the X-Manta-Site header on outbound
MantaClient requests.
manta_server_url: &'a strURL of the manta HTTP server this CLI talks to. Required.
settings_hsm_group_name_opt: Option<&'a str>Optional default HSM group name from cli.toml‘s
parent_hsm_group; threaded into the typed *Params’
settings_hsm_group_name field by every command that builds one.
request_timeout_secs: Option<u64>Optional per-request HTTP timeout (seconds) for outbound
MantaClient calls — read from cli.toml’s
request_timeout_secs. Honoured by commands that build their
MantaClient via MantaClient::new_with_timeout. Other commands
keep the default no-timeout behaviour.
settings: &'a ConfigRaw loaded cli.toml settings; held alongside the parsed
CliConfiguration so handlers can read fields (e.g. log)
that don’t live on the typed struct.