use serde::{Deserialize, Serialize}; /// ### `config.yaml` schema /// here should contain all configuration options. /// See: https://github.com/Dreamacro/clash/wiki/configuration for details #[derive(Default, Debug, Clone, Deserialize, Serialize)] pub struct ClashConfig { pub port: Option, /// alias to `mixed-port` pub mixed_port: Option, /// alias to `allow-lan` pub allow_lan: Option, /// alias to `external-controller` pub external_ctrl: Option, pub secret: Option, } #[derive(Default, Debug, Clone, Deserialize, Serialize)] pub struct ClashController { /// same as `external-controller` pub server: Option, pub secret: Option, }