Trait apisdk::FormLike

source ·
pub trait FormLike {
    // Required methods
    fn is_multipart(&self) -> bool;
    fn get_meta(&self) -> HashMap<String, String>;
    fn get_form(self) -> Option<HashMap<String, String>>;
    fn get_multipart(self) -> Option<Form>;
}
Expand description

This trait provides form related functions

Required Methods§

source

fn is_multipart(&self) -> bool

Check whether the form is a multipart form

source

fn get_meta(&self) -> HashMap<String, String>

Get the meta of the form

source

fn get_form(self) -> Option<HashMap<String, String>>

Treat the form as an urlencoded form

source

fn get_multipart(self) -> Option<Form>

Treat the form as a multipart form

Implementations on Foreign Types§

source§

impl FormLike for &Value

source§

impl FormLike for Value

source§

impl<K, V> FormLike for &HashMap<K, V>
where K: ToString, V: ToString,

source§

impl<K, V> FormLike for &[(K, V)]
where K: ToString, V: ToString,

source§

impl<K, V> FormLike for HashMap<K, V>
where K: ToString, V: ToString,

Implementors§