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<CertInput>,
pub http_extra_ca_bundle: Option<CertInput>,
pub http_client_cert: Option<CertInput>,
pub http_client_key: Option<CertInput>,
pub http_client_key_password: Option<String>,
}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<CertInput>CA bundle (file path or PEM content) - replaces default webpki-roots
http_extra_ca_bundle: Option<CertInput>Extra CA bundle (file path or PEM content) - appends to webpki-roots
http_client_cert: Option<CertInput>Client certificate for mTLS (file path, PEM content, or P12/PFX binary)
http_client_key: Option<CertInput>Client private key for mTLS (file path or PEM content, not needed for P12/PFX)
http_client_key_password: Option<String>Password for encrypted private key or P12/PFX file
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