pub struct WindowOpenEvent {
pub url: String,
pub window_name: String,
pub window_features: Vec<String>,
pub user_gesture: bool,
}Expand description
Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
Payload of the Page.windowOpen event.
Fields§
§url: StringThe URL for the new window.
window_name: StringWindow name.
window_features: Vec<String>An array of enabled window features.
user_gesture: boolWhether or not it was triggered by user gesture.
Trait Implementations§
Source§impl Clone for WindowOpenEvent
impl Clone for WindowOpenEvent
Source§impl Debug for WindowOpenEvent
impl Debug for WindowOpenEvent
Source§impl Default for WindowOpenEvent
impl Default for WindowOpenEvent
Source§impl<'de> Deserialize<'de> for WindowOpenEvent
impl<'de> Deserialize<'de> for WindowOpenEvent
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 Event for WindowOpenEvent
impl Event for WindowOpenEvent
Source§impl PartialEq for WindowOpenEvent
impl PartialEq for WindowOpenEvent
Source§impl Serialize for WindowOpenEvent
impl Serialize for WindowOpenEvent
impl StructuralPartialEq for WindowOpenEvent
Auto Trait Implementations§
impl Forget for WindowOpenEvent
impl Freeze for WindowOpenEvent
impl RefUnwindSafe for WindowOpenEvent
impl Send for WindowOpenEvent
impl Sync for WindowOpenEvent
impl Unpin for WindowOpenEvent
impl UnsafeUnpin for WindowOpenEvent
impl UnwindSafe for WindowOpenEvent
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