pub struct ElementOutcome {
pub action: String,
pub element: u32,
pub revision: u64,
pub tier: String,
pub cursor_moved: bool,
pub focus_restored: Option<bool>,
pub warnings: Vec<String>,
pub via: Option<String>,
pub name: Option<String>,
pub count: Option<u8>,
}Expand description
Successful element action, before it is rendered as JSON.
Fields§
§action: StringCommand name such as press or set_value.
element: u32Index the caller passed.
revision: u64Structural hash after the action.
tier: Stringax for an accessibility action. event posts to the pid. activate uses the foreground path.
cursor_moved: boolTrue when this action moved the system cursor.
focus_restored: Option<bool>Set when the action tried to restore the previous frontmost app.
warnings: Vec<String>Non-fatal notes. Scroll failure lands here unless --require-visible is set.
via: Option<String>set_value or enigo for type. Empty for other commands.
name: Option<String>Allowlisted action name for perform_action.
count: Option<u8>Press count, when the command was press.
Trait Implementations§
Source§impl Clone for ElementOutcome
impl Clone for ElementOutcome
Source§impl Debug for ElementOutcome
impl Debug for ElementOutcome
impl Eq for ElementOutcome
Source§impl PartialEq for ElementOutcome
impl PartialEq for ElementOutcome
impl StructuralPartialEq for ElementOutcome
Auto Trait Implementations§
impl Freeze for ElementOutcome
impl RefUnwindSafe for ElementOutcome
impl Send for ElementOutcome
impl Sync for ElementOutcome
impl Unpin for ElementOutcome
impl UnsafeUnpin for ElementOutcome
impl UnwindSafe for ElementOutcome
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.