pub struct WebToolsConfig {
pub fetch_max_bytes: usize,
pub fetch_timeout: Duration,
pub max_redirects: usize,
pub auto_approve_domains: Vec<String>,
pub allow_private_addresses: bool,
pub search: Option<SearchBackend>,
pub max_search_results: usize,
pub output_limit: usize,
}Expand description
Web tool settings resolved from the user’s configuration.
Fields§
§fetch_max_bytes: usize§fetch_timeout: Duration§max_redirects: usize§auto_approve_domains: Vec<String>HTTPS hosts fetched without approval. *.example.com matches
subdomains of example.com but not the domain itself.
allow_private_addresses: bool§search: Option<SearchBackend>§max_search_results: usize§output_limit: usizeTrait Implementations§
Source§impl Clone for WebToolsConfig
impl Clone for WebToolsConfig
Auto Trait Implementations§
impl Freeze for WebToolsConfig
impl RefUnwindSafe for WebToolsConfig
impl Send for WebToolsConfig
impl Sync for WebToolsConfig
impl Unpin for WebToolsConfig
impl UnsafeUnpin for WebToolsConfig
impl UnwindSafe for WebToolsConfig
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