Expand description
Schema and on-disk persistence for named server connection profiles
(~/.haste_health/config.toml). The profile command (create/delete/list profiles)
lives in crate::commands::profile; 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.
Re-exportsΒ§
use haste_fhir_model::r4::generated::terminology::IssueType;πuse haste_fhir_operation_error::OperationOutcomeError;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse std::path::PathBuf;π
StructsΒ§
- CliConfiguration π
- Profile π
- A named connection to a FHIR server plus how the CLI should authenticate to it.
EnumsΒ§
- Profile
Auth π - 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.
ConstantsΒ§
- DEFAULT_
CLIENT_ πCREDENTIALS_ SCOPE - Scope a client-credentials profile requests when it doesnβt store one.
FunctionsΒ§
- load_
config π - Loads the config file, creating a default one on disk if it doesnβt exist yet.
- read_
existing_ πconfig - write_
config π