Struct form_data::Map
[−]
[src]
pub struct Map { /* fields omitted */ }
A definition of key-value pairs to be parsed from form data.
Methods
impl Map
[src]
pub fn field(self, key: &str, value: Field) -> Self
[src]
Add a Field
to a map
Example
Field::map() .field("sub-field", Field::text()) .field("sub-field-two", Field::text()) .finalize();
pub fn finalize(self) -> Field
[src]
Finalize the map into a Field
, so it can be added to a Form
Field::map() .field("sub-field", Field::text()) .field("sub-field-two", Field::text()) .finalize();
Trait Implementations
impl Debug for Map
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more