pub struct CustomAction {
pub custom_action: String,
pub target: Target,
pub custom_action_param: Value,
pub target_offset: Rect,
}Expand description
Custom action - uses user-registered action handler.
Invokes a handler registered via MaaResourceRegisterCustomAction.
Fields§
§custom_action: StringHandler name (as registered). Required.
target: TargetTarget position passed to handler. Default: recognized position.
custom_action_param: ValueCustom parameters passed to the handler.
target_offset: RectOffset applied to target.
Trait Implementations§
Source§impl Clone for CustomAction
impl Clone for CustomAction
Source§fn clone(&self) -> CustomAction
fn clone(&self) -> CustomAction
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 CustomAction
impl Debug for CustomAction
Source§impl<'de> Deserialize<'de> for CustomAction
impl<'de> Deserialize<'de> for CustomAction
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 CustomAction
impl RefUnwindSafe for CustomAction
impl Send for CustomAction
impl Sync for CustomAction
impl Unpin for CustomAction
impl UnwindSafe for CustomAction
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