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