From f690777a911ddc9464e7c94c49761dbb8acff6e2 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 21 Aug 2024 16:14:58 +0300 Subject: [PATCH] refacator(dialog): mark `FileResponse` as `#[non_exhaustive]` (#1660) * recator(dialog): mark `FileResponse` as `#[non_exhaustive]` closes #1623 * change file --- .changes/dialog-file-response-non-exhaustive.md | 5 +++++ plugins/dialog/src/lib.rs | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changes/dialog-file-response-non-exhaustive.md diff --git a/.changes/dialog-file-response-non-exhaustive.md b/.changes/dialog-file-response-non-exhaustive.md new file mode 100644 index 00000000..f8d45d80 --- /dev/null +++ b/.changes/dialog-file-response-non-exhaustive.md @@ -0,0 +1,5 @@ +--- +"dialog": "patch" +--- + +Mark `FileResponse` as `non_exhaustive`. diff --git a/plugins/dialog/src/lib.rs b/plugins/dialog/src/lib.rs index b57cc44c..c9b1688f 100644 --- a/plugins/dialog/src/lib.rs +++ b/plugins/dialog/src/lib.rs @@ -218,6 +218,7 @@ impl MessageDialogBuilder { #[derive(Debug, Deserialize, Serialize, Default)] #[serde(rename_all = "camelCase")] +#[non_exhaustive] pub struct FileResponse { pub base64_data: Option, pub duration: Option,