pub struct ConfigOptions {
pub base_path: Option<PathBuf>,
pub allow_http: bool,
pub http_allowlist: Vec<String>,
pub file_roots: Vec<PathBuf>,
pub http_proxy: Option<String>,
pub http_proxy_from_env: bool,
pub http_ca_bundle: Option<PathBuf>,
pub http_extra_ca_bundle: Option<PathBuf>,
pub http_client_cert: Option<PathBuf>,
pub http_client_key: Option<PathBuf>,
pub http_client_key_password: Option<String>,
pub http_insecure: bool,
}Expand description
Configuration options for loading configs
Fields§
§base_path: Option<PathBuf>Base path for relative file references
allow_http: boolAllow HTTP resolver (disabled by default for security)
http_allowlist: Vec<String>HTTP URL allowlist (glob patterns)
file_roots: Vec<PathBuf>Additional file roots for file resolver sandboxing
http_proxy: Option<String>HTTP proxy URL (e.g., “http://proxy:8080” or “socks5://proxy:1080”)
http_proxy_from_env: boolWhether to auto-detect proxy from environment variables (HTTP_PROXY, HTTPS_PROXY)
http_ca_bundle: Option<PathBuf>Path to CA bundle PEM file (replaces default webpki-roots)
http_extra_ca_bundle: Option<PathBuf>Path to extra CA bundle PEM file (appends to webpki-roots)
http_client_cert: Option<PathBuf>Path to client certificate PEM or P12/PFX file (for mTLS)
http_client_key: Option<PathBuf>Path to client private key PEM file (for mTLS, not needed for P12/PFX)
http_client_key_password: Option<String>Password for encrypted private key or P12/PFX file
http_insecure: boolDANGEROUS: Skip TLS certificate verification (dev only)
Trait Implementations§
Source§impl Clone for ConfigOptions
impl Clone for ConfigOptions
Source§fn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigOptions
impl Debug for ConfigOptions
Source§impl Default for ConfigOptions
impl Default for ConfigOptions
Source§fn default() -> ConfigOptions
fn default() -> ConfigOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigOptions
impl RefUnwindSafe for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Unpin for ConfigOptions
impl UnwindSafe for ConfigOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more