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.
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).
Implementations§
Trait Implementations§
Source§impl Clone for SetInterceptFileChooserDialogParams
impl Clone for SetInterceptFileChooserDialogParams
Source§fn clone(&self) -> SetInterceptFileChooserDialogParams
fn clone(&self) -> SetInterceptFileChooserDialogParams
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 moreSource§impl Default for SetInterceptFileChooserDialogParams
impl Default for SetInterceptFileChooserDialogParams
Source§fn default() -> SetInterceptFileChooserDialogParams
fn default() -> SetInterceptFileChooserDialogParams
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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