pub enum Commands {
Show 33 variants
ToggleClickOverlay {
enabled: bool,
},
ToggleBoundingBoxes {
enabled: bool,
selector: Option<String>,
limit: Option<usize>,
include_html: Option<bool>,
},
NavigateTo {
url: String,
},
Refresh,
WaitForNavigation {
timeout_ms: Option<u64>,
},
WaitForElement {
selector: String,
timeout_ms: Option<u64>,
visible_only: Option<bool>,
},
Click {
selector: String,
},
ClickAt {
x: f64,
y: f64,
},
Clear {
selector: String,
},
PressKey {
selector: String,
key: String,
},
GetContent {
selector: Option<String>,
kind: Option<PageContentKind>,
},
GetText {
selector: String,
},
GetAttribute {
selector: String,
attribute: String,
},
GetTitle,
ExtractStructuredContent {
query: String,
schema: Option<Value>,
max_chars: Option<usize>,
},
Evaluate {
expression: String,
},
GetBoundingBoxes {
selector: String,
limit: Option<usize>,
include_html: Option<bool>,
},
InspectElement {
selector: String,
},
ScrollTo {
x: f64,
y: f64,
},
Drag {
from: CommandPoint,
to: CommandPoint,
modifiers: Option<i64>,
},
ScrollIntoView {
selector: String,
},
Screenshot {
full_page: Option<bool>,
path: Option<String>,
},
ClickAdvanced {
selector: String,
button: Option<String>,
click_count: Option<u8>,
modifiers: Option<i64>,
},
TypeText {
selector: String,
text: String,
clear: Option<bool>,
},
Hover {
selector: String,
},
Focus {
selector: String,
},
Check {
selector: String,
},
SelectOption {
selector: String,
values: Vec<String>,
},
DragTo {
selector: String,
target_selector: Option<String>,
source_position: Option<CommandPoint>,
target_position: Option<CommandPoint>,
modifiers: Option<i64>,
},
EvaluateOnElement {
selector: String,
expression: String,
},
GetElementBoundingBox {
selector: String,
},
ElementScreenshot {
selector: String,
format: Option<String>,
quality: Option<u8>,
},
GetBasicInfo {
selector: String,
},
}Variants§
ToggleClickOverlay
ToggleBoundingBoxes
Refresh
WaitForElement
Click
ClickAt
Clear
PressKey
GetContent
GetText
GetAttribute
GetTitle
ExtractStructuredContent
Fields
Evaluate
GetBoundingBoxes
InspectElement
ScrollTo
Drag
ScrollIntoView
Screenshot
ClickAdvanced
TypeText
Hover
Focus
Check
SelectOption
DragTo
EvaluateOnElement
GetElementBoundingBox
ElementScreenshot
GetBasicInfo
Implementations§
Source§impl Commands
impl Commands
pub fn command_type(&self) -> CommandType
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commands
impl<'de> Deserialize<'de> for Commands
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<Commands> for BrowserToolOptions
impl From<Commands> for BrowserToolOptions
Source§impl JsonSchema for Commands
impl JsonSchema for Commands
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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