aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/schema/common.rs')
-rw-r--r--src/api/schema/common.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/api/schema/common.rs b/src/api/schema/common.rs
index 7313002c..15f56e6c 100644
--- a/src/api/schema/common.rs
+++ b/src/api/schema/common.rs
@@ -36,6 +36,17 @@ pub struct PaneTarget {
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
+pub struct ProductAnnouncementDismissParams {
+ pub version: String,
+ pub id: String,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
+pub struct ReleaseNotesDismissParams {
+ pub version: String,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
pub struct TabTarget {
pub tab_id: String,
}
@@ -109,14 +120,6 @@ impl NotificationShowSound {
pub fn is_none(&self) -> bool {
matches!(self, Self::None)
}
-
- pub fn to_sound(self) -> Option<crate::sound::Sound> {
- match self {
- Self::None => None,
- Self::Done => Some(crate::sound::Sound::Done),
- Self::Request => Some(crate::sound::Sound::Request),
- }
- }
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]