cdp_driver/config.rs
1#[derive(Debug, Clone)]
2pub struct Config {
3 pub host: String,
4 pub port: u16,
5 pub viewport_width: i32,
6 pub viewport_height: i32,
7 pub screenshots_dir: String,
8}
9
10impl Default for Config {
11 fn default() -> Self {
12 Config {
13 host: "localhost".into(),
14 port: 9222,
15 viewport_width: 1920,
16 viewport_height: 1200,
17 screenshots_dir: "screenshots".into(),
18 }
19 }
20}