Skip to main content

toe_beans/v4/client/
config.rs

1use crate::v4::SocketConfig;
2use clap::Args;
3
4/// Configuration that can be passed in via the command line or programmatically to a Client
5#[derive(Args, Debug)]
6pub struct ClientConfig {
7    /// Used to configure the `Client`'s `Socket`.
8    #[command(flatten)]
9    pub socket_config: SocketConfig,
10}
11
12impl Default for ClientConfig {
13    fn default() -> Self {
14        Self {
15            socket_config: SocketConfig::default_client(),
16        }
17    }
18}