Skip to content

Commit

Permalink
refacator(dialog): mark FileResponse as #[non_exhaustive] (#1660)
Browse files Browse the repository at this point in the history
* recator(dialog): mark `FileResponse` as `#[non_exhaustive]`

closes #1623

* change file
  • Loading branch information
amrbashir authored Aug 21, 2024
1 parent f946a7c commit f690777
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/dialog-file-response-non-exhaustive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dialog": "patch"
---

Mark `FileResponse` as `non_exhaustive`.
1 change: 1 addition & 0 deletions plugins/dialog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit f690777

Please sign in to comment.