Skip to main content

Crate mxr_config

Crate mxr_config 

Source

Structs§

AccountConfig
Configuration for a single email account.
AppearanceConfig
Appearance / UI configuration.
GeneralConfig
General application settings.
LoggingConfig
Logging / retention configuration.
MxrConfig
Top-level mxr configuration.
RenderConfig
HTML rendering configuration.
SearchConfig
Search configuration.
SnoozeConfig
Snooze timing configuration.

Enums§

ConfigError
Errors that can occur during config loading.
GmailCredentialSource
SendProviderConfig
Send provider configuration (tagged enum).
SortOrder
Sort order for search results (config-local, not reusing core’s).
SyncProviderConfig
Sync provider configuration (tagged enum).

Functions§

app_instance_name
Returns the runtime instance name used for data/socket namespacing.
config_dir
Returns the mxr config directory (e.g. ~/.config/mxr on Linux/macOS).
config_file_path
Returns the path to the main config file.
data_dir
Returns the mxr data directory (e.g. ~/.local/share/mxr on Linux).
load_config
Load config from the default config file path, falling back to defaults.
load_config_from_path
Load config from a specific file path. Returns defaults if file doesn’t exist.
load_config_from_str
Load config from a TOML string.
save_config
Save config to the default config file path.
save_config_to_path
Save config to a specific path.
socket_path
Returns the IPC socket path for the current instance.