Skip to main content

Module config

Module config 

Source
Expand description

Schema and on-disk persistence for named server connection profiles (~/.haste_health/config.toml). The config command (create/delete/list profiles) lives in crate::commands::config; this module only owns the data.

Secret material (client secrets, cached OAuth tokens) is never stored here β€” see crate::cli::secrets β€” so this file is safe to inspect, back up, or share.

StructsΒ§

CliConfiguration πŸ”’
Profile πŸ”’
A named connection to a FHIR server plus how the CLI should authenticate to it.

EnumsΒ§

ProfileAuth πŸ”’
How the CLI authenticates for a given profile. Any secret values (client secret, cached tokens) live in the separate secrets file, keyed by profile name.

FunctionsΒ§

load_config πŸ”’
Loads the config file, creating a default one on disk if it doesn’t exist yet.
read_existing_config πŸ”’
write_config πŸ”’