#[non_exhaustive]pub struct UserExtensionConfig {
pub additional_hosts: Vec<UserExtensionHost>,
pub trust_academic_repos: bool,
pub trust_oa_registries: bool,
pub store_root: Option<String>,
pub contact_email: Option<String>,
pub unpaywall_email: Option<String>,
pub cite_key_template: Option<String>,
pub cite_file_field: Option<String>,
}Expand description
Parsed result from a config.toml user-extension section (issue #323).
Returned by load; callers merge Self::additional_hosts into the
allowlist unconditionally, and optionally merge academic_repo_hosts
when Self::trust_academic_repos is true.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.additional_hosts: Vec<UserExtensionHost>Hosts from [[network.additional_hosts]].
trust_academic_repos: booltrue when [network] trust_academic_repos = true is set in
config.toml. Callers that respect this flag SHOULD merge
academic_repo_hosts into their allowlist.
trust_oa_registries: booltrue when [network] trust_oa_registries = true is set in
config.toml. Callers that respect this flag SHOULD merge
oa_registry_hosts into their allowlist.
store_root: Option<String>[store] root, verbatim, when present and non-empty (#441).
Returned as the raw string rather than a path: expanding it needs a
home directory, and this crate has no home-directory dependency.
The CLI and MCP resolvers own that step, and both place this rung
below DOIGET_STORE_ROOT and above the cwd default (ADR-0036).
contact_email: Option<String>[network] contact_email, trimmed, when present and non-empty
(#504). Rung below DOIGET_CONTACT_EMAIL.
unpaywall_email: Option<String>[network] unpaywall_email, trimmed, when present and non-empty
(#504). Rung below DOIGET_UNPAYWALL_EMAIL, itself above
Self::contact_email.
cite_key_template: Option<String>[cite] key_template – the default --key-template (#610). Blank
is absent.
cite_file_field: Option<String>[cite] file_field – the default --file-field pattern (#610).