use crate::security::xss::UntrustedString;
use std::collections::HashMap;
#[derive(Debug, Clone)]
pub struct UploadedFile {
pub filename: String,
pub content_type: String,
pub data: Vec<u8>, }
#[derive(Debug, Clone)]
pub struct FormData {
pub fields: HashMap<String, UntrustedString>,
pub files: HashMap<String, UploadedFile>,
}
impl FormData {
pub fn new() -> Self {
Self {
fields: HashMap::new(),
files: HashMap::new(),
}
}
}