pub struct ChoiceField {
pub name: String,
pub options: Vec<(String, String)>,
pub selected: Vec<usize>,
pub multi_select: bool,
}Expand description
Base choice field
Fields§
§name: StringField name
options: Vec<(String, String)>Options (export value, display text)
selected: Vec<usize>Selected indices
multi_select: boolWhether multiple selection is allowed
Trait Implementations§
Source§impl Clone for ChoiceField
impl Clone for ChoiceField
Source§fn clone(&self) -> ChoiceField
fn clone(&self) -> ChoiceField
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 moreAuto Trait Implementations§
impl Freeze for ChoiceField
impl RefUnwindSafe for ChoiceField
impl Send for ChoiceField
impl Sync for ChoiceField
impl Unpin for ChoiceField
impl UnsafeUnpin for ChoiceField
impl UnwindSafe for ChoiceField
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