mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 20:23:09 +00:00
make files optional when deserializing form data
This commit is contained in:
parent
06ae3756ad
commit
cfe94950c6
1 changed files with 5 additions and 1 deletions
|
@ -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>>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue