pub struct SetInterceptFileChooserDialogParams {
pub enabled: bool,
pub cancel: Option<bool>,
}Expand description
Intercept file chooser requests and transfer control to protocol clients.
When file chooser interception is enabled, native file chooser dialog is
not shown. Instead, a protocol event Page.fileChooserOpened is emitted.
Parameters of Page.setInterceptFileChooserDialog.
Fields§
§enabled: bool§cancel: Option<bool>If true, cancels the dialog by emitting relevant events (if any) in addition to not showing it if the interception is enabled (default: false).
Experimental: may change without notice.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetInterceptFileChooserDialogParams
impl<'de> Deserialize<'de> for SetInterceptFileChooserDialogParams
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
impl StructuralPartialEq for SetInterceptFileChooserDialogParams
Auto Trait Implementations§
impl Forget for SetInterceptFileChooserDialogParams
impl Freeze for SetInterceptFileChooserDialogParams
impl RefUnwindSafe for SetInterceptFileChooserDialogParams
impl Send for SetInterceptFileChooserDialogParams
impl Sync for SetInterceptFileChooserDialogParams
impl Unpin for SetInterceptFileChooserDialogParams
impl UnsafeUnpin for SetInterceptFileChooserDialogParams
impl UnwindSafe for SetInterceptFileChooserDialogParams
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