diff --git a/worker/src/formdata.rs b/worker/src/formdata.rs index 9b76093fe..308f97c01 100644 --- a/worker/src/formdata.rs +++ b/worker/src/formdata.rs @@ -12,11 +12,11 @@ use wasm_bindgen::JsCast; use wasm_bindgen_futures::JsFuture; /// Representing the options any FormData value can be, a field or a file. +#[derive(Debug, Clone)] pub enum FormEntry { Field(String), File(File), } - /// A [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData) representation of the /// request body, providing access to form encoded fields and files. #[derive(Debug)] @@ -112,6 +112,7 @@ impl From, &dyn AsRef<&str>>> for FormData { /// A [File](https://developer.mozilla.org/en-US/docs/Web/API/File) representation used with /// `FormData`. +#[derive(Debug, Clone)] pub struct File(web_sys::File); impl File {