pub struct SetDownloadBehaviorParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> SetDownloadBehaviorParamsBuilder<'a>
impl<'a> SetDownloadBehaviorParamsBuilder<'a>
Sourcepub fn browser_context_id(
self,
browser_context_id: impl Into<BrowserContextID<'a>>,
) -> Self
pub fn browser_context_id( self, browser_context_id: impl Into<BrowserContextID<'a>>, ) -> Self
BrowserContext to set download behavior. When omitted, default browser context is used.
Sourcepub fn download_path(self, download_path: impl Into<Cow<'a, str>>) -> Self
pub fn download_path(self, download_path: impl Into<Cow<'a, str>>) -> Self
The default path to save downloaded files to. This is required if behavior is set to ‘allow’ or ‘allowAndName’.
Sourcepub fn events_enabled(self, events_enabled: bool) -> Self
pub fn events_enabled(self, events_enabled: bool) -> Self
Whether to emit download events (defaults to false).
pub fn build(self) -> SetDownloadBehaviorParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> RefUnwindSafe for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> Send for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> Sync for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> Unpin for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> UnsafeUnpin for SetDownloadBehaviorParamsBuilder<'a>
impl<'a> UnwindSafe for SetDownloadBehaviorParamsBuilder<'a>
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