pub struct JavascriptDialogOpeningParams {
pub url: String,
pub frame_id: Box<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. javascriptDialogOpening
Fields§
§url: StringFrame url.
frame_id: Box<FrameId>Frame id.
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.
Trait Implementations§
Source§impl Clone for JavascriptDialogOpeningParams
impl Clone for JavascriptDialogOpeningParams
Source§fn clone(&self) -> JavascriptDialogOpeningParams
fn clone(&self) -> JavascriptDialogOpeningParams
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<'de> Deserialize<'de> for JavascriptDialogOpeningParams
impl<'de> Deserialize<'de> for JavascriptDialogOpeningParams
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 PartialEq for JavascriptDialogOpeningParams
impl PartialEq for JavascriptDialogOpeningParams
Source§fn eq(&self, other: &JavascriptDialogOpeningParams) -> bool
fn eq(&self, other: &JavascriptDialogOpeningParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavascriptDialogOpeningParams
Auto Trait Implementations§
impl Freeze for JavascriptDialogOpeningParams
impl RefUnwindSafe for JavascriptDialogOpeningParams
impl Send for JavascriptDialogOpeningParams
impl Sync for JavascriptDialogOpeningParams
impl Unpin for JavascriptDialogOpeningParams
impl UnsafeUnpin for JavascriptDialogOpeningParams
impl UnwindSafe for JavascriptDialogOpeningParams
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