pub struct ConfigOptions {
pub base_path: Option<PathBuf>,
pub allow_http: bool,
pub http_allowlist: Vec<String>,
pub file_roots: Vec<PathBuf>,
}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
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