pub struct Event {
pub name: String,
pub doc: String,
pub value: Option<Type>,
pub at: Option<Type>,
pub press: bool,
}Expand description
Something that happens to a component. What it does is data: an action reference, invoked through the action API, or a view-state update; never a closure.
Fields§
§name: String§doc: String§value: Option<Type>The value the event carries (the key a list selected), when it carries one.
at: Option<Type>Where the value lands, when the event says: a drop’s place among the items it was dropped
on, counted from 0. An event with one carries [value, at].
press: boolWhether the event is the action of the control that raises it: a press runs the action the view bound to it, through the action API, so the press and an agent’s invocation are the one route. An event that is not is the view’s own: it is reported to the view.
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