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 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Β§

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.

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 πŸ”’