make files optional when deserializing form data
This commit is contained in:
1 parent
06ae3756ad
commit
cfe94950c6
1 file changed
+5
-1
@@ -14,7 +14,11 @@ pub struct FormData {
|
|||||||
|
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "serialize",
|
feature = "serialize",
|
||||||
serde(skip_serializing, deserialize_with = "deserialize_file_engine")
|
serde(
|
||||||
|
default,
|
||||||
|
skip_serializing,
|
||||||
|
deserialize_with = "deserialize_file_engine"
|
||||||
|
)
|
||||||
)]
|
)]
|
||||||
pub files: Option<std::sync::Arc<dyn FileEngine>>,
|
pub files: Option<std::sync::Arc<dyn FileEngine>>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user