aboutsummaryrefslogtreecommitdiffstats
path: root/crates/aggregator/src/cnfg.rs
blob: 7c7aaf46b8bc7d53e3263054a7186ea0007f9c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::Arc;

use serde::Deserialize;

#[derive(Deserialize, Clone)]
pub struct LocalConfig {
    pub nats: NatsConfig,
}

#[derive(Deserialize, Clone)]
#[serde(rename_all = "kebab-case")]
pub struct NatsConfig {
    #[serde(rename = "stream-name")]
    pub name: Arc<str>,
    pub subjects: Arc<[String]>,
    pub durable_name: Arc<str>,
}