Enum actix_form_data::Value [−][src]
pub enum Value<T> {
Map(HashMap<String, Value<T>>),
Array(Vec<Value<T>>),
File(FileMeta<T>),
Bytes(Bytes),
Text(String),
Int(i64),
Float(f64),
}Expand description
The result of a succesfull parse through a given multipart stream.
This type represents all possible variations in structure of a Multipart Form.
Example usage
if let Value::Map(mut hashmap) = value {
if let Some(Value::Int(integer)) = hashmap.remove("field-name") {
println!("{}", integer);
}
}Variants
File(FileMeta<T>)Tuple Fields of File
0: FileMeta<T>Text(String)Tuple Fields of Text
0: StringInt(i64)Tuple Fields of Int
0: i64Float(f64)Tuple Fields of Float
0: f64