From c524eea01d7fa4ed6a0d28b772072e254607c853 Mon Sep 17 00:00:00 2001 From: Brian Carlsen Date: Sun, 13 Nov 2022 22:22:47 +0100 Subject: [PATCH] Fixed naming convention of `kind` for `type`. --- src/dialog.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dialog.rs b/src/dialog.rs index 2127741..37ad817 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -44,6 +44,7 @@ pub struct MessageDialogOptions { pub title: Option, /// The type of the dialog. Defaults to MessageDialogType::Info. + #[serde(rename(serialize = "type"))] pub kind: MessageDialogType, }