pub struct RegisterAction {
pub id: String,
pub default_key: KeyCode,
}Expand description
Beschreibt eine Aktion, die bei der Engine registriert werden kann.
Describes an action that can be registered with the engine.
Fields§
§id: StringEindeutige Aktions-ID für Scripts und das Content-Tool.
Unique action identifier used by scripts and the content tool.
default_key: KeyCodeStandard-Tastenbelegung bei der Registrierung der Aktion.
Default key binding when the action is registered.
Implementations§
Trait Implementations§
Source§impl Clone for RegisterAction
impl Clone for RegisterAction
Source§impl Debug for RegisterAction
impl Debug for RegisterAction
Source§impl<'de> Deserialize<'de> for RegisterAction
impl<'de> Deserialize<'de> for RegisterAction
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 RegisterAction
impl RefUnwindSafe for RegisterAction
impl Send for RegisterAction
impl Sync for RegisterAction
impl Unpin for RegisterAction
impl UnsafeUnpin for RegisterAction
impl UnwindSafe for RegisterAction
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