pub struct ExternalSettings {Show 20 fields
pub clash_rule_base: String,
pub surge_rule_base: String,
pub surfboard_rule_base: String,
pub mellow_rule_base: String,
pub quan_rule_base: String,
pub quanx_rule_base: String,
pub loon_rule_base: String,
pub sssub_rule_base: String,
pub singbox_rule_base: String,
pub enable_rule_generator: Option<bool>,
pub overwrite_original_rules: Option<bool>,
pub add_emoji: Option<bool>,
pub remove_old_emoji: Option<bool>,
pub emojis: Vec<RegexMatchConfig>,
pub include_remarks: Vec<String>,
pub exclude_remarks: Vec<String>,
pub custom_rulesets: Vec<RulesetConfig>,
pub custom_proxy_groups: Vec<ProxyGroupConfig>,
pub rename_nodes: Vec<RegexMatchConfig>,
pub tpl_args: Option<HashMap<String, String>>,
}Expand description
External configuration structure with flattened fields
Fields§
§clash_rule_base: String§surge_rule_base: String§surfboard_rule_base: String§mellow_rule_base: String§quan_rule_base: String§quanx_rule_base: String§loon_rule_base: String§sssub_rule_base: String§singbox_rule_base: String§enable_rule_generator: Option<bool>§overwrite_original_rules: Option<bool>§add_emoji: Option<bool>§remove_old_emoji: Option<bool>§emojis: Vec<RegexMatchConfig>§include_remarks: Vec<String>§exclude_remarks: Vec<String>§custom_rulesets: Vec<RulesetConfig>§custom_proxy_groups: Vec<ProxyGroupConfig>§rename_nodes: Vec<RegexMatchConfig>§tpl_args: Option<HashMap<String, String>>Implementations§
Trait Implementations§
Source§impl Clone for ExternalSettings
impl Clone for ExternalSettings
Source§fn clone(&self) -> ExternalSettings
fn clone(&self) -> ExternalSettings
Returns a copy of the value. Read more
1.0.0 · 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 ExternalSettings
impl Debug for ExternalSettings
Source§impl Default for ExternalSettings
impl Default for ExternalSettings
Source§fn default() -> ExternalSettings
fn default() -> ExternalSettings
Returns the “default value” for a type. Read more
Source§impl From<IniExternalSettings> for ExternalSettings
impl From<IniExternalSettings> for ExternalSettings
Source§fn from(ini_settings: IniExternalSettings) -> Self
fn from(ini_settings: IniExternalSettings) -> Self
Converts to this type from the input type.
Source§impl From<TomlExternalSettings> for ExternalSettings
impl From<TomlExternalSettings> for ExternalSettings
Source§fn from(toml_settings: TomlExternalSettings) -> Self
fn from(toml_settings: TomlExternalSettings) -> Self
Converts to this type from the input type.
Source§impl From<YamlExternalSettings> for ExternalSettings
impl From<YamlExternalSettings> for ExternalSettings
Source§fn from(yaml_settings: YamlExternalSettings) -> Self
fn from(yaml_settings: YamlExternalSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExternalSettings
impl RefUnwindSafe for ExternalSettings
impl Send for ExternalSettings
impl Sync for ExternalSettings
impl Unpin for ExternalSettings
impl UnwindSafe for ExternalSettings
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