pub struct ActionEntry {
pub trigger: ActionTrigger,
pub action_id: u128,
pub payload_data: Option<Vec<u8>>,
}Expand description
A single action binding: a trigger, an action ID, and optional payload.
When the event system detects the input described by trigger, it dispatches
the action identified by action_id. If the action carries data (e.g., drag
coordinates), payload_data holds the serialized payload.
§Example
use fission_ir::semantics::{ActionEntry, ActionTrigger};
let entry = ActionEntry {
trigger: ActionTrigger::Default,
action_id: 42,
payload_data: None,
};Fields§
§trigger: ActionTriggerWhich input gesture triggers this action.
action_id: u128The raw 128-bit action ID dispatched to the widget’s action handler.
payload_data: Option<Vec<u8>>Optional serialized payload. None for actions with no data.
Trait Implementations§
Source§impl Clone for ActionEntry
impl Clone for ActionEntry
Source§fn clone(&self) -> ActionEntry
fn clone(&self) -> ActionEntry
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 ActionEntry
impl Debug for ActionEntry
Source§impl<'de> Deserialize<'de> for ActionEntry
impl<'de> Deserialize<'de> for ActionEntry
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
Source§impl Hash for ActionEntry
impl Hash for ActionEntry
Source§impl PartialEq for ActionEntry
impl PartialEq for ActionEntry
Source§impl Serialize for ActionEntry
impl Serialize for ActionEntry
impl Eq for ActionEntry
impl StructuralPartialEq for ActionEntry
Auto Trait Implementations§
impl Freeze for ActionEntry
impl RefUnwindSafe for ActionEntry
impl Send for ActionEntry
impl Sync for ActionEntry
impl Unpin for ActionEntry
impl UnsafeUnpin for ActionEntry
impl UnwindSafe for ActionEntry
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