pub enum UiEventAction {
Activate {
action: UiActionId,
},
SetSlider {
action: UiActionId,
value: f32,
},
SetText {
action: UiActionId,
value: String,
},
SetToggle {
action: UiActionId,
value: bool,
},
}Expand description
Typed user input accepted only by a matching node role.
Variants§
Activate
Activate a button’s declared action.
Fields
§
action: UiActionIdSetSlider
Set a slider to a bounded scalar value.
SetText
Set a text input value.
SetToggle
Set a toggle value.
Trait Implementations§
Source§impl Clone for UiEventAction
impl Clone for UiEventAction
Source§fn clone(&self) -> UiEventAction
fn clone(&self) -> UiEventAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UiEventAction
impl Debug for UiEventAction
Source§impl<'de> Deserialize<'de> for UiEventAction
impl<'de> Deserialize<'de> for UiEventAction
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
Source§impl PartialEq for UiEventAction
impl PartialEq for UiEventAction
Source§fn eq(&self, other: &UiEventAction) -> bool
fn eq(&self, other: &UiEventAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UiEventAction
impl Serialize for UiEventAction
impl StructuralPartialEq for UiEventAction
Auto Trait Implementations§
impl Freeze for UiEventAction
impl RefUnwindSafe for UiEventAction
impl Send for UiEventAction
impl Sync for UiEventAction
impl Unpin for UiEventAction
impl UnsafeUnpin for UiEventAction
impl UnwindSafe for UiEventAction
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