pub struct SetInterceptFileChooserDialog {
pub method: SetInterceptFileChooserDialogMethod,
pub params: SetInterceptFileChooserDialogParams,
}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.
setInterceptFileChooserDialog
Fields§
§method: SetInterceptFileChooserDialogMethod§params: SetInterceptFileChooserDialogParamsImplementations§
Source§impl SetInterceptFileChooserDialog
impl SetInterceptFileChooserDialog
pub fn builder() -> SetInterceptFileChooserDialogBuilder
Source§impl SetInterceptFileChooserDialog
impl SetInterceptFileChooserDialog
pub const IDENTIFIER: &'static str = "Page.setInterceptFileChooserDialog"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetInterceptFileChooserDialog
impl Clone for SetInterceptFileChooserDialog
Source§fn clone(&self) -> SetInterceptFileChooserDialog
fn clone(&self) -> SetInterceptFileChooserDialog
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 CommandResult for SetInterceptFileChooserDialog
impl CommandResult for SetInterceptFileChooserDialog
type Result = SetInterceptFileChooserDialogResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SetInterceptFileChooserDialog
impl<'de> Deserialize<'de> for SetInterceptFileChooserDialog
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 From<SetInterceptFileChooserDialog> for BrowserProtocolCommands
impl From<SetInterceptFileChooserDialog> for BrowserProtocolCommands
Source§fn from(v: SetInterceptFileChooserDialog) -> Self
fn from(v: SetInterceptFileChooserDialog) -> Self
Converts to this type from the input type.
Source§impl From<SetInterceptFileChooserDialog> for Command
impl From<SetInterceptFileChooserDialog> for Command
Source§fn from(v: SetInterceptFileChooserDialog) -> Self
fn from(v: SetInterceptFileChooserDialog) -> Self
Converts to this type from the input type.
Source§impl From<SetInterceptFileChooserDialog> for PageCommands
impl From<SetInterceptFileChooserDialog> for PageCommands
Source§fn from(v: SetInterceptFileChooserDialog) -> Self
fn from(v: SetInterceptFileChooserDialog) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetInterceptFileChooserDialog
impl PartialEq for SetInterceptFileChooserDialog
Source§fn eq(&self, other: &SetInterceptFileChooserDialog) -> bool
fn eq(&self, other: &SetInterceptFileChooserDialog) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for SetInterceptFileChooserDialog
impl TryFrom<BrowserProtocolCommands> for SetInterceptFileChooserDialog
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <SetInterceptFileChooserDialog as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetInterceptFileChooserDialog as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PageCommands> for SetInterceptFileChooserDialog
impl TryFrom<PageCommands> for SetInterceptFileChooserDialog
Source§type Error = PageCommands
type Error = PageCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageCommands,
) -> Result<Self, <SetInterceptFileChooserDialog as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <SetInterceptFileChooserDialog as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetInterceptFileChooserDialog
Auto Trait Implementations§
impl Freeze for SetInterceptFileChooserDialog
impl RefUnwindSafe for SetInterceptFileChooserDialog
impl Send for SetInterceptFileChooserDialog
impl Sync for SetInterceptFileChooserDialog
impl Unpin for SetInterceptFileChooserDialog
impl UnsafeUnpin for SetInterceptFileChooserDialog
impl UnwindSafe for SetInterceptFileChooserDialog
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