pub enum FieldKind {
Toggle,
Slider {
min: f64,
max: f64,
step: f64,
},
Dropdown {
options: Vec<String>,
},
TextInput,
Button {
action: String,
},
Custom {
type_name: String,
},
}Expand description
Describes the UI type of a setting field.
Variants§
Trait Implementations§
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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