feat: Make the start clear

Have messaging to let user know of update complete/ failure
This commit is contained in:
Justin Miller
2021-10-09 15:24:01 -06:00
committed by Aiden McClelland
parent 2b2451d22f
commit 7fc4cb175c
5 changed files with 78 additions and 22 deletions

View File

@@ -213,9 +213,9 @@ pub enum NotificationSubtype {
}
impl NotificationSubtype {
fn to_json(&self) -> serde_json::Value {
match &self {
&NotificationSubtype::General => serde_json::Value::Null,
&NotificationSubtype::BackupReport {
match self {
NotificationSubtype::General => serde_json::Value::Null,
NotificationSubtype::BackupReport {
server_attempted,
server_error,
packages,
@@ -241,9 +241,9 @@ impl NotificationSubtype {
}
}
fn code(&self) -> u32 {
match &self {
&Self::General => 0,
&Self::BackupReport {
match self {
Self::General => 0,
Self::BackupReport {
server_attempted: _,
server_error: _,
packages: _,