pub struct SettingsBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Settings
objects.
Implementations§
Source§impl SettingsBuilder
impl SettingsBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SettingsBuilder
.
pub fn allow_modal_dialogs(self, allow_modal_dialogs: bool) -> Self
pub fn auto_load_images(self, auto_load_images: bool) -> Self
pub fn cursive_font_family(self, cursive_font_family: &str) -> Self
pub fn default_charset(self, default_charset: &str) -> Self
pub fn default_font_family(self, default_font_family: &str) -> Self
pub fn default_font_size(self, default_font_size: u32) -> Self
pub fn default_monospace_font_size( self, default_monospace_font_size: u32, ) -> Self
pub fn draw_compositing_indicators( self, draw_compositing_indicators: bool, ) -> Self
pub fn enable_caret_browsing(self, enable_caret_browsing: bool) -> Self
pub fn enable_developer_extras(self, enable_developer_extras: bool) -> Self
pub fn enable_dns_prefetching(self, enable_dns_prefetching: bool) -> Self
pub fn enable_frame_flattening(self, enable_frame_flattening: bool) -> Self
pub fn enable_fullscreen(self, enable_fullscreen: bool) -> Self
pub fn enable_html5_database(self, enable_html5_database: bool) -> Self
pub fn enable_html5_local_storage( self, enable_html5_local_storage: bool, ) -> Self
pub fn enable_hyperlink_auditing(self, enable_hyperlink_auditing: bool) -> Self
pub fn enable_java(self, enable_java: bool) -> Self
pub fn enable_javascript(self, enable_javascript: bool) -> Self
pub fn enable_offline_web_application_cache( self, enable_offline_web_application_cache: bool, ) -> Self
pub fn enable_page_cache(self, enable_page_cache: bool) -> Self
pub fn enable_plugins(self, enable_plugins: bool) -> Self
pub fn enable_private_browsing(self, enable_private_browsing: bool) -> Self
pub fn enable_resizable_text_areas( self, enable_resizable_text_areas: bool, ) -> Self
pub fn enable_site_specific_quirks( self, enable_site_specific_quirks: bool, ) -> Self
pub fn enable_smooth_scrolling(self, enable_smooth_scrolling: bool) -> Self
pub fn enable_tabs_to_links(self, enable_tabs_to_links: bool) -> Self
pub fn enable_webaudio(self, enable_webaudio: bool) -> Self
pub fn enable_webgl(self, enable_webgl: bool) -> Self
pub fn enable_xss_auditor(self, enable_xss_auditor: bool) -> Self
pub fn fantasy_font_family(self, fantasy_font_family: &str) -> Self
pub fn javascript_can_access_clipboard( self, javascript_can_access_clipboard: bool, ) -> Self
pub fn javascript_can_open_windows_automatically( self, javascript_can_open_windows_automatically: bool, ) -> Self
pub fn load_icons_ignoring_image_load_setting( self, load_icons_ignoring_image_load_setting: bool, ) -> Self
pub fn media_playback_allows_inline( self, media_playback_allows_inline: bool, ) -> Self
pub fn media_playback_requires_user_gesture( self, media_playback_requires_user_gesture: bool, ) -> Self
pub fn minimum_font_size(self, minimum_font_size: u32) -> Self
pub fn monospace_font_family(self, monospace_font_family: &str) -> Self
pub fn pictograph_font_family(self, pictograph_font_family: &str) -> Self
pub fn print_backgrounds(self, print_backgrounds: bool) -> Self
pub fn sans_serif_font_family(self, sans_serif_font_family: &str) -> Self
pub fn serif_font_family(self, serif_font_family: &str) -> Self
pub fn user_agent(self, user_agent: &str) -> Self
pub fn zoom_text_only(self, zoom_text_only: bool) -> Self
Trait Implementations§
Source§impl Clone for SettingsBuilder
impl Clone for SettingsBuilder
Source§fn clone(&self) -> SettingsBuilder
fn clone(&self) -> SettingsBuilder
Returns a copy 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 Default for SettingsBuilder
impl Default for SettingsBuilder
Source§fn default() -> SettingsBuilder
fn default() -> SettingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SettingsBuilder
impl RefUnwindSafe for SettingsBuilder
impl Send for SettingsBuilder
impl Sync for SettingsBuilder
impl Unpin for SettingsBuilder
impl UnwindSafe for SettingsBuilder
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