-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanager.rs
More file actions
32 lines (29 loc) · 1006 Bytes
/
manager.rs
File metadata and controls
32 lines (29 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! Bothan API server manager configuration.
//!
//! Settings for manager components (e.g., crypto info manager).
//!
//! ## Usage
//!
//! ```rust,no_run
//! use bothan_api::config::manager::ManagerConfig;
//! let config = ManagerConfig::default();
//! ```
use crypto_info::CryptoInfoManagerConfig;
use forex_info::ForexInfoManagerConfig;
use serde::{Deserialize, Serialize};
/// Shared Band worker serde helpers.
pub(crate) mod band_serde;
/// Crypto info manager configuration module.
pub mod crypto_info;
/// Forex info manager configuration module.
pub mod forex_info;
/// The configuration for all bothan-api's manager.
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
pub struct ManagerConfig {
/// The configuration for the crypto info manager.
pub crypto: CryptoInfoManagerConfig,
/// The configuration for the forex info manager.
/// Note: This field is optional and will be set to default if not provided.
#[serde(default)]
pub forex: ForexInfoManagerConfig,
}