pub struct ClashConfig {
pub port: u16,
pub socks_port: u16,
pub allow_lan: bool,
pub mode: String,
pub log_level: String,
pub external_controller: String,
pub proxies: Vec<ProxyNode>,
pub proxy_groups: Vec<ProxyGroup>,
pub rules: Vec<String>,
}Fields§
§port: u16§socks_port: u16§allow_lan: bool§mode: String§log_level: String§external_controller: String§proxies: Vec<ProxyNode>§proxy_groups: Vec<ProxyGroup>§rules: Vec<String>Trait Implementations§
Source§impl Clone for ClashConfig
impl Clone for ClashConfig
Source§fn clone(&self) -> ClashConfig
fn clone(&self) -> ClashConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClashConfig
impl Debug for ClashConfig
Source§impl<'de> Deserialize<'de> for ClashConfig
impl<'de> Deserialize<'de> for ClashConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClashConfig
impl RefUnwindSafe for ClashConfig
impl Send for ClashConfig
impl Sync for ClashConfig
impl Unpin for ClashConfig
impl UnsafeUnpin for ClashConfig
impl UnwindSafe for ClashConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more