pub struct Action {
pub action_type: ActionType,
pub selector: Option<String>,
pub text: Option<String>,
pub milliseconds: Option<u32>,
pub key: Option<String>,
pub direction: Option<String>,
pub script: Option<String>,
pub full_page: Option<bool>,
}Fields§
§action_type: ActionTypeType of action to perform
selector: Option<String>CSS selector for the target element
text: Option<String>Text to write (for write action)
milliseconds: Option<u32>Time to wait in milliseconds (for wait action)
key: Option<String>Key to press (for press action)
direction: Option<String>Scroll direction (up or down)
script: Option<String>JavaScript code to execute (for executeJavascript action)
full_page: Option<bool>Take full page screenshot (for screenshot action)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.