fix notification serialization types

This commit is contained in:
Keagan McClelland
2021-10-07 10:41:51 -06:00
committed by Aiden McClelland
parent 2540bf301e
commit 097cc3399e

View File

@@ -190,6 +190,7 @@ impl fmt::Display for InvalidNotificationLevel {
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct Notification {
id: u32,
package_id: Option<PackageId>, // TODO change for package id newtype