19 lines
368 B
Rust
19 lines
368 B
Rust
use serde::Deserialize;
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
pub struct AppConfig {
|
|
pub kafka: KafkaConfig,
|
|
// pub schemas: HashMap<String, SchemaConfig>,
|
|
}
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
pub struct KafkaConfig {
|
|
pub brokers: String,
|
|
pub schema_registry: String,
|
|
}
|
|
|
|
// #[derive(Debug, Deserialize)]
|
|
// pub struct SchemaConfig {
|
|
// pub file: String,
|
|
// }
|