pub struct MultipleChoiceField {
pub name: String,
pub label: Option<String>,
pub required: bool,
pub help_text: Option<String>,
pub widget: Widget,
pub initial: Option<Value>,
pub choices: Vec<(String, String)>,
}Expand description
MultipleChoiceField for selecting multiple choices
Fields§
§name: String§label: Option<String>§required: bool§help_text: Option<String>§widget: Widget§initial: Option<Value>§choices: Vec<(String, String)>Implementations§
Trait Implementations§
Source§impl FormField for MultipleChoiceField
impl FormField for MultipleChoiceField
fn name(&self) -> &str
fn label(&self) -> Option<&str>
fn required(&self) -> bool
fn help_text(&self) -> Option<&str>
fn widget(&self) -> &Widget
fn initial(&self) -> Option<&Value>
fn clean(&self, value: Option<&Value>) -> FieldResult<Value>
Auto Trait Implementations§
impl Freeze for MultipleChoiceField
impl RefUnwindSafe for MultipleChoiceField
impl Send for MultipleChoiceField
impl Sync for MultipleChoiceField
impl Unpin for MultipleChoiceField
impl UnsafeUnpin for MultipleChoiceField
impl UnwindSafe for MultipleChoiceField
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