add notifier common data

This commit is contained in:
OMGeeky
2024-05-02 23:13:46 +02:00
parent f5e537c3a3
commit f2a3ad40da
3 changed files with 13 additions and 2 deletions

3
Cargo.lock generated
View File

@@ -2583,8 +2583,9 @@ dependencies = [
[[package]]
name = "twba-common"
version = "0.2.2"
version = "0.2.3"
dependencies = [
"serde",
"tracing",
"tracing-appender",
"tracing-subscriber",

View File

@@ -1,6 +1,6 @@
[package]
name = "twba-common"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -13,3 +13,4 @@ tracing-appender = "0.2"
twba-backup-config = { version = "0.1", git = "https://github.com/OMGeeky/backup_config.git" }
twba-local-db = { version = "0.2", git = "https://github.com/OMGeeky/twitch_backup.local_db.git" }
serde = { version = "1.0.199", features = ["derive"] }

View File

@@ -54,3 +54,12 @@ pub fn file_tracer(
let file = file.with_max_level(level);
(guard, file)
}
pub mod notify {
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct NotificationRequest {
message: String,
}
}