pub struct Event {
pub action: String,
pub values: Map<String, Value>,
pub edit: Option<CellEdit>,
pub grid: Option<GridEvent>,
}Expand description
What the user did, for the tree’s owner.
Fields§
§action: StringThe button’s action, an input’s submit, "edit" for a cell edit, …
values: Map<String, Value>The current value of every named field (input text, toggle bool, select option,
table selection), plus _x/_y for a canvas click.
edit: Option<CellEdit>§grid: Option<GridEvent>What happened in a grid (the action is its op).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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