pub struct HandleJavaScriptDialogParams {
pub accept: bool,
pub prompt_text: Option<String>,
}
Expand description
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload). handleJavaScriptDialog
Fields§
§accept: bool
Whether to accept or dismiss the dialog.
prompt_text: Option<String>
The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.
Implementations§
source§impl HandleJavaScriptDialogParams
impl HandleJavaScriptDialogParams
pub fn new(accept: impl Into<bool>) -> HandleJavaScriptDialogParams
source§impl HandleJavaScriptDialogParams
impl HandleJavaScriptDialogParams
pub fn builder() -> HandleJavaScriptDialogParamsBuilder
source§impl HandleJavaScriptDialogParams
impl HandleJavaScriptDialogParams
pub const IDENTIFIER: &'static str = "Page.handleJavaScriptDialog"
Trait Implementations§
source§impl Clone for HandleJavaScriptDialogParams
impl Clone for HandleJavaScriptDialogParams
source§fn clone(&self) -> HandleJavaScriptDialogParams
fn clone(&self) -> HandleJavaScriptDialogParams
Returns a copy 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 Command for HandleJavaScriptDialogParams
impl Command for HandleJavaScriptDialogParams
§type Response = HandleJavaScriptDialogReturns
type Response = HandleJavaScriptDialogReturns
The type of the response this request triggers on the chromium server
source§impl Debug for HandleJavaScriptDialogParams
impl Debug for HandleJavaScriptDialogParams
source§impl<'de> Deserialize<'de> for HandleJavaScriptDialogParams
impl<'de> Deserialize<'de> for HandleJavaScriptDialogParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<HandleJavaScriptDialogParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<HandleJavaScriptDialogParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Method for HandleJavaScriptDialogParams
impl Method for HandleJavaScriptDialogParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
source§impl PartialEq for HandleJavaScriptDialogParams
impl PartialEq for HandleJavaScriptDialogParams
source§fn eq(&self, other: &HandleJavaScriptDialogParams) -> bool
fn eq(&self, other: &HandleJavaScriptDialogParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HandleJavaScriptDialogParams
impl Serialize for HandleJavaScriptDialogParams
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HandleJavaScriptDialogParams
Auto Trait Implementations§
impl RefUnwindSafe for HandleJavaScriptDialogParams
impl Send for HandleJavaScriptDialogParams
impl Sync for HandleJavaScriptDialogParams
impl Unpin for HandleJavaScriptDialogParams
impl UnwindSafe for HandleJavaScriptDialogParams
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