pub struct DownloadWillBeginEvent {
pub frame_id: FrameId,
pub guid: String,
pub url: String,
pub suggested_filename: String,
}Expand description
Fired when page is about to start a download.
Experimental: may change without notice.
Payload of the Browser.downloadWillBegin event.
Fields§
§frame_id: FrameIdId of the frame that caused the download to begin.
guid: StringGlobal unique identifier of the download.
url: StringURL of the resource being downloaded.
suggested_filename: StringSuggested file name of the resource (the actual name of the file saved on disk may differ).
Trait Implementations§
Source§impl Clone for DownloadWillBeginEvent
impl Clone for DownloadWillBeginEvent
Source§impl Debug for DownloadWillBeginEvent
impl Debug for DownloadWillBeginEvent
Source§impl Default for DownloadWillBeginEvent
impl Default for DownloadWillBeginEvent
Source§impl<'de> Deserialize<'de> for DownloadWillBeginEvent
impl<'de> Deserialize<'de> for DownloadWillBeginEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Event for DownloadWillBeginEvent
impl Event for DownloadWillBeginEvent
Source§impl PartialEq for DownloadWillBeginEvent
impl PartialEq for DownloadWillBeginEvent
Source§impl Serialize for DownloadWillBeginEvent
impl Serialize for DownloadWillBeginEvent
impl StructuralPartialEq for DownloadWillBeginEvent
Auto Trait Implementations§
impl Forget for DownloadWillBeginEvent
impl Freeze for DownloadWillBeginEvent
impl RefUnwindSafe for DownloadWillBeginEvent
impl Send for DownloadWillBeginEvent
impl Sync for DownloadWillBeginEvent
impl Unpin for DownloadWillBeginEvent
impl UnsafeUnpin for DownloadWillBeginEvent
impl UnwindSafe for DownloadWillBeginEvent
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