Crate structform

Source

Macros§

derive_form_input
Creates a new form input to be used in a StructForm.
impl_numeric_input_with_default_with_stringops
Implements ParseAndFormat<$type> for $numeric_input<$type>.
impl_numeric_input_with_stringops
Implements ParseAndFormat<$type> for $numeric_input<$type>, and also implements ParseAndFormat<Option<$type>>> for $numeric_input<Option<$type>>.
impl_text_input_with_stringops
Implements ParseAndFormat<$type> for $text_input<$type>, and also implements ParseAndFormat<Option<$type>>> for $text_input<Option<$type>>.
impl_vec_text_input_with_stringops
Implements ParseAndFormat<Vec<$type>> for $text_input<Vec<$type>>.

Enums§

ParseError

Traits§

ParseAndFormat
Trait used to tie strongly typed models into form inputs. Libraries must define their own form inputs (although macros are provided to make this easy), and then implement ParseAndFormat for their input for all supported types. In other words, impl ParseAndFormat<MyType> for MyTextInput<MyType>.
StructForm

Derive Macros§

StructForm