1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Debug, Clone)] pub struct AppOptions { pub rulefile: String, pub port: u32, } impl AppOptions { pub fn new() -> Self { Self { rulefile: "pico-rule.json".to_string(), port: 8000, } } }