pub enum Value {
Press,
Remove,
Bool(bool),
Number(f64),
Choice(String),
RemoveAt(usize),
Clear,
Entities(Vec<EntityRef>),
}Expand description
What a field was set to — or that it was pressed: in the dialog, by a pick in the viewport, or by dragging a handle.
Variants§
Press
A button, a list item or a reference field was pressed.
Remove
A list item’s remove button was pressed.
Bool(bool)
Number(f64)
Choice(String)
An action, or a select’s option, by its value.
RemoveAt(usize)
The entity at this index was taken out of a reference field.
Clear
Everything was taken out of a reference field.
Entities(Vec<EntityRef>)
What a reference field holds now: all an operation is ever sent for
one (see super::Reference).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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 Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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