pub struct ActionDetail {
pub node_name: String,
pub action: ActionEnum,
pub box_rect: Rect,
pub success: bool,
pub detail: Value,
}Expand description
Details of an action operation result.
Fields§
§node_name: StringName of the node that performed the action
action: ActionEnumAction type
box_rect: RectTarget bounding box
success: boolWhether action was successful
detail: ValueAction-specific detail JSON
Implementations§
Source§impl ActionDetail
impl ActionDetail
pub fn as_click_result(&self) -> Option<ClickActionResult>
pub fn as_long_press_result(&self) -> Option<LongPressActionResult>
pub fn as_swipe_result(&self) -> Option<SwipeActionResult>
pub fn as_multi_swipe_result(&self) -> Option<MultiSwipeActionResult>
pub fn as_click_key_result(&self) -> Option<ClickKeyActionResult>
pub fn as_input_text_result(&self) -> Option<InputTextActionResult>
pub fn as_app_result(&self) -> Option<AppActionResult>
pub fn as_scroll_result(&self) -> Option<ScrollActionResult>
pub fn as_touch_result(&self) -> Option<TouchActionResult>
pub fn as_shell_result(&self) -> Option<ShellActionResult>
Trait Implementations§
Source§impl Clone for ActionDetail
impl Clone for ActionDetail
Source§fn clone(&self) -> ActionDetail
fn clone(&self) -> ActionDetail
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionDetail
impl Debug for ActionDetail
Source§impl<'de> Deserialize<'de> for ActionDetail
impl<'de> Deserialize<'de> for ActionDetail
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 ActionDetail
impl RefUnwindSafe for ActionDetail
impl Send for ActionDetail
impl Sync for ActionDetail
impl Unpin for ActionDetail
impl UnwindSafe for ActionDetail
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