rocket_multipart_form_data/
fields.rs

1use std::path::PathBuf;
2
3use crate::mime::Mime;
4
5#[derive(Debug)]
6pub struct FileField {
7    pub content_type: Option<Mime>,
8    pub file_name:    Option<String>,
9    pub path:         PathBuf,
10}
11
12#[derive(Debug)]
13pub struct RawField {
14    pub content_type: Option<Mime>,
15    pub file_name:    Option<String>,
16    pub raw:          Vec<u8>,
17}
18
19#[derive(Debug)]
20pub struct TextField {
21    pub content_type: Option<Mime>,
22    pub file_name:    Option<String>,
23    pub text:         String,
24}