#[non_exhaustive]pub struct WebPluginConfig {Show 17 fields
pub search_provider_kind: SearchProviderKind,
pub brave_api_key: Option<String>,
pub tavily_api_key: Option<String>,
pub domain_allowlist: Vec<String>,
pub domain_denylist: Vec<String>,
pub block_private_ips: bool,
pub rate_limit_rpm: u32,
pub max_content_length: usize,
pub max_redirects: u32,
pub max_search_results: usize,
pub playwright_path: Option<PathBuf>,
pub screenshot_timeout: Duration,
pub request_timeout: Duration,
pub viewport_width: u32,
pub viewport_height: u32,
pub sanitizer_enabled: bool,
pub user_agent: String,
}Expand description
Configuration for the web plugin.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.search_provider_kind: SearchProviderKind§brave_api_key: Option<String>§tavily_api_key: Option<String>§domain_allowlist: Vec<String>§domain_denylist: Vec<String>§block_private_ips: bool§rate_limit_rpm: u32§max_content_length: usize§max_redirects: u32§max_search_results: usize§playwright_path: Option<PathBuf>§screenshot_timeout: Duration§request_timeout: Duration§viewport_width: u32§viewport_height: u32§sanitizer_enabled: bool§user_agent: StringTrait Implementations§
Source§impl Clone for WebPluginConfig
impl Clone for WebPluginConfig
Source§fn clone(&self) -> WebPluginConfig
fn clone(&self) -> WebPluginConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebPluginConfig
impl Debug for WebPluginConfig
Auto Trait Implementations§
impl Freeze for WebPluginConfig
impl RefUnwindSafe for WebPluginConfig
impl Send for WebPluginConfig
impl Sync for WebPluginConfig
impl Unpin for WebPluginConfig
impl UnsafeUnpin for WebPluginConfig
impl UnwindSafe for WebPluginConfig
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