pub enum PluginCommand {
Show 18 variants
OpenChromeWindow {
chrome_binary: Option<String>,
},
DiscoverInitialTab {
cdp_websocket_url: String,
},
OpenChromeTab {
cdp_websocket_url: String,
},
CloseBrowserProcess {
process_id: u32,
},
CloseChromeTab {
cdp_websocket_url: String,
target_id: String,
},
NavigateChromeTab {
cdp_websocket_url: String,
target_id: String,
url: String,
},
InjectChromiumBidiMapper {
cdp_websocket_url: String,
},
ResolveBidiContextForTab {
cdp_websocket_url: String,
mapper_target_id: Option<String>,
browsing_context_id: Option<String>,
url: Option<String>,
},
ClickElementViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
CountElementsViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
HighlightElementsViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
duration_ms: u64,
},
FocusElementViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
FillElementViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
value: String,
},
HoverElementViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
PressKeyViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
key: String,
text: Option<String>,
},
GetTextContentViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
GetInnerTextViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
},
WaitForSelectorViaCdp {
cdp_websocket_url: String,
target_id: String,
css_selector: String,
visible: bool,
},
}Variants§
OpenChromeWindow
DiscoverInitialTab
OpenChromeTab
CloseBrowserProcess
CloseChromeTab
InjectChromiumBidiMapper
ResolveBidiContextForTab
Fields
ClickElementViaCdp
CountElementsViaCdp
HighlightElementsViaCdp
FocusElementViaCdp
FillElementViaCdp
HoverElementViaCdp
PressKeyViaCdp
Fields
GetTextContentViaCdp
GetInnerTextViaCdp
WaitForSelectorViaCdp
Trait Implementations§
Source§impl Clone for PluginCommand
impl Clone for PluginCommand
Source§fn clone(&self) -> PluginCommand
fn clone(&self) -> PluginCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginCommand
impl Debug for PluginCommand
Source§impl<'de> Deserialize<'de> for PluginCommand
impl<'de> Deserialize<'de> for PluginCommand
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 Eq for PluginCommand
Source§impl PartialEq for PluginCommand
impl PartialEq for PluginCommand
Source§impl Serialize for PluginCommand
impl Serialize for PluginCommand
impl StructuralPartialEq for PluginCommand
Auto Trait Implementations§
impl Freeze for PluginCommand
impl RefUnwindSafe for PluginCommand
impl Send for PluginCommand
impl Sync for PluginCommand
impl Unpin for PluginCommand
impl UnsafeUnpin for PluginCommand
impl UnwindSafe for PluginCommand
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