pub struct JavascriptDialogOpening {
pub url: String,
pub frame_id: FrameId,
pub message: String,
pub type_: DialogType,
pub has_browser_handler: bool,
pub default_prompt: Option<String>,
}Expand description
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Fields§
§url: StringFrame url.
frame_id: FrameIdFrame id. EXPERIMENTAL
message: StringMessage that will be displayed by the dialog.
type_: DialogTypeDialog type.
has_browser_handler: boolTrue iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
default_prompt: Option<String>Default dialog prompt.
Implementations§
Trait Implementations§
Source§impl Clone for JavascriptDialogOpening
impl Clone for JavascriptDialogOpening
Source§fn clone(&self) -> JavascriptDialogOpening
fn clone(&self) -> JavascriptDialogOpening
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 moreSource§impl Debug for JavascriptDialogOpening
impl Debug for JavascriptDialogOpening
Source§impl<'de> Deserialize<'de> for JavascriptDialogOpening
impl<'de> Deserialize<'de> for JavascriptDialogOpening
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
Auto Trait Implementations§
impl Freeze for JavascriptDialogOpening
impl RefUnwindSafe for JavascriptDialogOpening
impl Send for JavascriptDialogOpening
impl Sync for JavascriptDialogOpening
impl Unpin for JavascriptDialogOpening
impl UnsafeUnpin for JavascriptDialogOpening
impl UnwindSafe for JavascriptDialogOpening
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