27 lines
420 B
Rust
Executable File
27 lines
420 B
Rust
Executable File
use serde::Deserialize;
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Config {
|
|
pub client: Client,
|
|
pub twitch: Twitch,
|
|
pub padding: Padding,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Client {
|
|
pub id: String,
|
|
pub secret: String,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Twitch {
|
|
#[serde(default)]
|
|
pub channel: Option<String>,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Padding {
|
|
pub start: i64,
|
|
pub end: i64,
|
|
}
|