pub struct DialogRequest {
pub kind: DialogKind,
pub message: String,
pub default_text: String,
pub url: String,
}Expand description
A script dialog a page opened (crate::WebView::on_dialog). The page’s script waits until
the DialogResponder answers.
Fields§
§kind: DialogKind§message: StringThe text the page passed.
default_text: Stringprompt()’s second argument; empty for the other two.
url: StringThe address of the frame that asked, so the dialog can say which site is speaking.
Implementations§
Trait Implementations§
Source§impl Clone for DialogRequest
impl Clone for DialogRequest
Source§impl Debug for DialogRequest
impl Debug for DialogRequest
impl Eq for DialogRequest
Source§impl PartialEq for DialogRequest
impl PartialEq for DialogRequest
impl StructuralPartialEq for DialogRequest
Auto Trait Implementations§
impl Forget for DialogRequest
impl Freeze for DialogRequest
impl Move for DialogRequest
impl RefUnwindSafe for DialogRequest
impl Send for DialogRequest
impl Sync for DialogRequest
impl Unpin for DialogRequest
impl UnsafeUnpin for DialogRequest
impl UnwindSafe for DialogRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more