pub struct JavascriptDialogOpeningEventParamsBuilder { /* private fields */ }Expand description
Builder for JavascriptDialogOpeningEventParams.
Implementations§
Source§impl JavascriptDialogOpeningEventParamsBuilder
impl JavascriptDialogOpeningEventParamsBuilder
Sourcepub fn message(&mut self, value: String) -> &mut Self
pub fn message(&mut self, value: String) -> &mut Self
Message that will be displayed by the dialog.
Sourcepub fn type(&mut self, value: DialogType) -> &mut Self
pub fn type(&mut self, value: DialogType) -> &mut Self
Dialog type.
Sourcepub fn has_browser_handler(&mut self, value: bool) -> &mut Self
pub fn has_browser_handler(&mut self, value: bool) -> &mut Self
True 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.
Sourcepub fn default_prompt(&mut self, value: Option<String>) -> &mut Self
pub fn default_prompt(&mut self, value: Option<String>) -> &mut Self
Default dialog prompt.
Sourcepub fn build(
&self,
) -> Result<JavascriptDialogOpeningEventParams, JavascriptDialogOpeningEventParamsBuilderError>
pub fn build( &self, ) -> Result<JavascriptDialogOpeningEventParams, JavascriptDialogOpeningEventParamsBuilderError>
Builds a new JavascriptDialogOpeningEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for JavascriptDialogOpeningEventParamsBuilder
impl Clone for JavascriptDialogOpeningEventParamsBuilder
Source§fn clone(&self) -> JavascriptDialogOpeningEventParamsBuilder
fn clone(&self) -> JavascriptDialogOpeningEventParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for JavascriptDialogOpeningEventParamsBuilder
impl RefUnwindSafe for JavascriptDialogOpeningEventParamsBuilder
impl Send for JavascriptDialogOpeningEventParamsBuilder
impl Sync for JavascriptDialogOpeningEventParamsBuilder
impl Unpin for JavascriptDialogOpeningEventParamsBuilder
impl UnsafeUnpin for JavascriptDialogOpeningEventParamsBuilder
impl UnwindSafe for JavascriptDialogOpeningEventParamsBuilder
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