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