refacator(dialog): mark FileResponse as #[non_exhaustive] (#1660)

* recator(dialog): mark `FileResponse` as `#[non_exhaustive]`

closes #1623

* change file
This commit is contained in:
Amr Bashir
2024-08-21 16:14:58 +03:00
committed by GitHub
parent f946a7cf1f
commit f690777a91
2 changed files with 6 additions and 0 deletions
@@ -0,0 +1,5 @@
---
"dialog": "patch"
---
Mark `FileResponse` as `non_exhaustive`.
+1
View File
@@ -218,6 +218,7 @@ impl<R: Runtime> MessageDialogBuilder<R> {
#[derive(Debug, Deserialize, Serialize, Default)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct FileResponse {
pub base64_data: Option<String>,
pub duration: Option<u64>,