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
match value {
Value::Map(mut hashmap) => {
match hashmap.remove("field-name") {
Some(value) => match value {
Value::Int(integer) => println!("{}", integer),
_ => (),
}
None => (),
}
}
_ => (),
}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: f64Implementations
Trait Implementations
Future that resolves to a Self.
Create a Self from request parts asynchronously.
Create a Self from request head asynchronously. Read more