Enum actix_form_data::Value [−][src]
pub enum Value { Map(HashMap<String, Value>), Array(Vec<Value>), File(FileMeta), 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)
Bytes(Bytes)
Text(String)
Int(i64)
Float(f64)
Implementations
Trait Implementations
Future that resolves to a Self.
Create a Self from request parts asynchronously.
Create a Self from request head asynchronously. Read more
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value