pub struct EventSpec {
pub name: &'static str,
pub arg: &'static str,
pub data: String,
pub doc: &'static str,
}Expand description
One event, for the glue and its declarations.
Fields§
§name: &'static strIts name (press: the handler is onPress).
arg: &'static strThe name of the handler’s one argument in TypeScript (event;
unused without data).
data: StringThe TypeScript type of its data (void for none), one object
(docs/dev/api-naming.md “Payloads”).
doc: &'static strDocumentation.
Trait Implementations§
Auto Trait Implementations§
impl Forget for EventSpec
impl Freeze for EventSpec
impl Move for EventSpec
impl RefUnwindSafe for EventSpec
impl Send for EventSpec
impl Sync for EventSpecwhere
RawVecInner: Sync,
impl Unpin for EventSpec
impl UnsafeUnpin for EventSpec
impl UnwindSafe for EventSpec
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