Skip to content
Clone

feat(config): add live section to central lib/config crate

zhenyi committed
parent 3a8ebd3 commit 411be70 Browse files

1 file changed

+27 −0

Added lib/config/src/live.rs View lib/config/src/live.rs
@@ -0,0 +1,27 @@
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4#[serde(default, deny_unknown_fields)]
5pub struct LiveSettings {
6 pub enabled: bool,
7 pub base_url: String,
8 pub api_key: String,
9 pub api_secret: String,
10 pub webhook_secret: String,
11 pub room_token_ttl_seconds: u64,
12 pub empty_timeout_seconds: u64,
13}
14
15impl Default for LiveSettings {
16 fn default() -> Self {
17 Self {
18 enabled: false,
19 base_url: String::new(),
20 api_key: String::new(),
21 api_secret: String::new(),
22 webhook_secret: String::new(),
23 room_token_ttl_seconds: 600,
24 empty_timeout_seconds: 300,
25 }
26 }
27}