pub struct EventJavascriptDialogOpening {
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. javascriptDialogOpening
Fields§
§url: StringFrame url.
frame_id: FrameIdFrame 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.
Implementations§
Source§impl EventJavascriptDialogOpening
impl EventJavascriptDialogOpening
pub const IDENTIFIER: &'static str = "Page.javascriptDialogOpening"
Trait Implementations§
Source§impl Clone for EventJavascriptDialogOpening
impl Clone for EventJavascriptDialogOpening
Source§fn clone(&self) -> EventJavascriptDialogOpening
fn clone(&self) -> EventJavascriptDialogOpening
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 EventJavascriptDialogOpening
impl Debug for EventJavascriptDialogOpening
Source§impl<'de> Deserialize<'de> for EventJavascriptDialogOpening
impl<'de> Deserialize<'de> for EventJavascriptDialogOpening
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 From<EventJavascriptDialogOpening> for CdpEvent
impl From<EventJavascriptDialogOpening> for CdpEvent
Source§fn from(el: EventJavascriptDialogOpening) -> CdpEvent
fn from(el: EventJavascriptDialogOpening) -> CdpEvent
Converts to this type from the input type.
Source§impl IntoEventKind for EventJavascriptDialogOpening
impl IntoEventKind for EventJavascriptDialogOpening
Source§fn event_kind() -> EventKindwhere
Self: Sized + 'static,
fn event_kind() -> EventKindwhere
Self: Sized + 'static,
What kind of event this type is
Source§impl Method for EventJavascriptDialogOpening
impl Method for EventJavascriptDialogOpening
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl PartialEq for EventJavascriptDialogOpening
impl PartialEq for EventJavascriptDialogOpening
Source§fn eq(&self, other: &EventJavascriptDialogOpening) -> bool
fn eq(&self, other: &EventJavascriptDialogOpening) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventJavascriptDialogOpening
Auto Trait Implementations§
impl Freeze for EventJavascriptDialogOpening
impl RefUnwindSafe for EventJavascriptDialogOpening
impl Send for EventJavascriptDialogOpening
impl Sync for EventJavascriptDialogOpening
impl Unpin for EventJavascriptDialogOpening
impl UnwindSafe for EventJavascriptDialogOpening
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