pub struct AgentAction {
pub id: Option<String>,
pub action: ActionType,
pub selector: String,
pub value: Option<String>,
pub coordinates: Option<(f64, f64)>,
pub target_selector: Option<String>,
pub from: Option<(f64, f64)>,
pub to: Option<(f64, f64)>,
pub duration_ms: Option<u64>,
}Expand description
An action that an agent can execute on the UI.
Fields§
§id: Option<String>Server-assigned ID used to correlate bridge execution receipts.
action: ActionTypeThe type of action
selector: StringCSS selector of the target element
value: Option<String>Value for type/fill actions
coordinates: Option<(f64, f64)>Coordinates for scroll actions
target_selector: Option<String>Optional destination element for a drag action.
from: Option<(f64, f64)>Optional source point for coordinate-driven drag actions.
to: Option<(f64, f64)>Optional destination point for coordinate-driven drag actions.
duration_ms: Option<u64>Optional duration for a drag action in milliseconds.
Trait Implementations§
Source§impl Clone for AgentAction
impl Clone for AgentAction
Source§fn clone(&self) -> AgentAction
fn clone(&self) -> AgentAction
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 AgentAction
impl Debug for AgentAction
Source§impl<'de> Deserialize<'de> for AgentAction
impl<'de> Deserialize<'de> for AgentAction
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 AgentAction
impl RefUnwindSafe for AgentAction
impl Send for AgentAction
impl Sync for AgentAction
impl Unpin for AgentAction
impl UnsafeUnpin for AgentAction
impl UnwindSafe for AgentAction
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