pub struct WebPluginConfigBuilder { /* private fields */ }Expand description
Builder for WebPluginConfig.
Implementations§
Source§impl WebPluginConfigBuilder
impl WebPluginConfigBuilder
pub fn new() -> Self
pub fn with_search_provider(self, kind: SearchProviderKind) -> Self
pub fn with_brave_api_key(self, key: impl Into<String>) -> Self
pub fn with_tavily_api_key(self, key: impl Into<String>) -> Self
pub fn with_domain_allowlist(self, domains: Vec<String>) -> Self
pub fn with_domain_denylist(self, domains: Vec<String>) -> Self
pub fn with_block_private_ips(self, block: bool) -> Self
pub fn with_rate_limit_rpm(self, rpm: u32) -> Self
pub fn with_max_content_length(self, length: usize) -> Self
pub fn with_max_redirects(self, max: u32) -> Self
pub fn with_max_search_results(self, max: usize) -> Self
pub fn with_playwright_path(self, path: PathBuf) -> Self
pub fn with_screenshot_timeout(self, timeout: Duration) -> Self
pub fn with_request_timeout(self, timeout: Duration) -> Self
pub fn with_viewport(self, width: u32, height: u32) -> Self
pub fn with_sanitizer_enabled(self, enabled: bool) -> Self
pub fn with_user_agent(self, ua: impl Into<String>) -> Self
pub fn build(self) -> WebPluginConfig
Trait Implementations§
Source§impl Debug for WebPluginConfigBuilder
impl Debug for WebPluginConfigBuilder
Source§impl Default for WebPluginConfigBuilder
impl Default for WebPluginConfigBuilder
Source§fn default() -> WebPluginConfigBuilder
fn default() -> WebPluginConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebPluginConfigBuilder
impl RefUnwindSafe for WebPluginConfigBuilder
impl Send for WebPluginConfigBuilder
impl Sync for WebPluginConfigBuilder
impl Unpin for WebPluginConfigBuilder
impl UnsafeUnpin for WebPluginConfigBuilder
impl UnwindSafe for WebPluginConfigBuilder
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