pub struct CustomEventKind {
pub kind: String,
pub display_name: String,
pub payload: Json,
}Expand description
A user-defined event kind with arbitrary payload.
Library consumers can emit custom events on any entity without modifying moire source.
Fields§
§kind: StringEvent kind identifier (e.g. “query_executed”).
display_name: StringHuman-readable display name (e.g. “Query Executed”).
payload: JsonArbitrary structured payload as JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CustomEventKind
impl RefUnwindSafe for CustomEventKind
impl Send for CustomEventKind
impl Sync for CustomEventKind
impl Unpin for CustomEventKind
impl UnsafeUnpin for CustomEventKind
impl UnwindSafe for CustomEventKind
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