pub struct DownloadWillBeginEventParamsBuilder { /* private fields */ }Expand description
Builder for DownloadWillBeginEventParams.
Implementations§
Source§impl DownloadWillBeginEventParamsBuilder
impl DownloadWillBeginEventParamsBuilder
Sourcepub fn frame_id(&mut self, value: FrameId) -> &mut Self
pub fn frame_id(&mut self, value: FrameId) -> &mut Self
Id of the frame that caused the download to begin.
Sourcepub fn suggested_filename(&mut self, value: String) -> &mut Self
pub fn suggested_filename(&mut self, value: String) -> &mut Self
Suggested file name of the resource (the actual name of the file saved on disk may differ).
Sourcepub fn build(
&self,
) -> Result<DownloadWillBeginEventParams, DownloadWillBeginEventParamsBuilderError>
pub fn build( &self, ) -> Result<DownloadWillBeginEventParams, DownloadWillBeginEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for DownloadWillBeginEventParamsBuilder
impl Clone for DownloadWillBeginEventParamsBuilder
Source§fn clone(&self) -> DownloadWillBeginEventParamsBuilder
fn clone(&self) -> DownloadWillBeginEventParamsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DownloadWillBeginEventParamsBuilder
impl RefUnwindSafe for DownloadWillBeginEventParamsBuilder
impl Send for DownloadWillBeginEventParamsBuilder
impl Sync for DownloadWillBeginEventParamsBuilder
impl Unpin for DownloadWillBeginEventParamsBuilder
impl UnsafeUnpin for DownloadWillBeginEventParamsBuilder
impl UnwindSafe for DownloadWillBeginEventParamsBuilder
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