Skip to main content

FormData

Trait FormData 

Source
pub trait FormData {
    // Required method
    fn get_value(&self, key: &str) -> Option<&str>;
}
Expand description

Trait abstracting key-value form data access.

Required Methods§

Source

fn get_value(&self, key: &str) -> Option<&str>

Retrieves the string value for a given form field key.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FormData for BTreeMap<&str, &str>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for BTreeMap<String, String>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for HashMap<&str, &str>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for HashMap<&str, Vec<&str>>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for HashMap<String, String>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for HashMap<String, Vec<String>>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for Vec<(&str, &str)>

Source§

fn get_value(&self, key: &str) -> Option<&str>

Source§

impl FormData for [(&str, &str)]

Source§

fn get_value(&self, key: &str) -> Option<&str>

Implementors§