pub struct Change {
pub sf: Option<String>,
pub id: String,
pub value: Value,
pub checked: Option<bool>,
pub on: Option<bool>,
pub name: Option<String>,
pub item: Option<String>,
pub values: Option<Map<String, Value>>,
pub raw: Map<String, Value>,
}Expand description
change: an el control flipped, a prefs row changed, or an input
kind took a new value.
The new value is a switch’s state, a slider’s value or range, a select’s option, a calendar’s day, a table’s picks, a split’s shares, a pager’s page, a carousel’s slide or a question’s answer.
Fields§
§sf: Option<String>The surface.
id: StringThe node.
value: ValueThe control’s value, the prefs row’s new value or the kind’s
new value.
checked: Option<bool>The control’s new state.
on: Option<bool>Whether the user reacted with a message’s reaction chip now.
name: Option<String>The control’s name.
item: Option<String>The prefs row, or the question of a questions answer.
values: Option<Map<String, Value>>Form values, inside an el form.
raw: Map<String, Value>The event as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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 Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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