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]
impl Map
pub fn field(self, key: &str, value: Field) -> Self
[src]
pub fn field(self, key: &str, value: Field) -> Self
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]
pub fn finalize(self) -> Field
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]
impl Debug for Map
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Map
[src]
impl Clone for Map