pub struct ExtraSettings {Show 24 fields
pub enable_rule_generator: bool,
pub overwrite_original_rules: bool,
pub rename_array: RegexMatchConfigs,
pub emoji_array: RegexMatchConfigs,
pub add_emoji: bool,
pub remove_emoji: bool,
pub append_proxy_type: bool,
pub nodelist: bool,
pub sort_flag: bool,
pub filter_deprecated: bool,
pub clash_new_field_name: bool,
pub clash_script: bool,
pub surge_ssr_path: String,
pub managed_config_prefix: String,
pub quanx_dev_id: String,
pub udp: Option<bool>,
pub tfo: Option<bool>,
pub skip_cert_verify: Option<bool>,
pub tls13: Option<bool>,
pub clash_classical_ruleset: bool,
pub sort_script: String,
pub clash_proxies_style: String,
pub clash_proxy_groups_style: String,
pub authorized: bool,
}Expand description
Settings for subscription export operations
Fields§
§enable_rule_generator: boolWhether to enable the rule generator
overwrite_original_rules: boolWhether to overwrite original rules
rename_array: RegexMatchConfigsRename operations to apply
emoji_array: RegexMatchConfigsEmoji operations to apply
add_emoji: boolWhether to add emoji
remove_emoji: boolWhether to remove emoji
append_proxy_type: boolWhether to append proxy type
nodelist: boolWhether to output as node list
sort_flag: boolWhether to sort nodes
filter_deprecated: boolWhether to filter deprecated nodes
clash_new_field_name: boolWhether to use new field names in Clash
clash_script: boolWhether to use scripts in Clash
surge_ssr_path: StringPath to Surge SSR binary
managed_config_prefix: StringPrefix for managed configs
quanx_dev_id: StringQuantumultX device ID
udp: Option<bool>UDP support flag
tfo: Option<bool>TCP Fast Open support flag
skip_cert_verify: Option<bool>Skip certificate verification flag
tls13: Option<bool>TLS 1.3 support flag
clash_classical_ruleset: boolWhether to use classical ruleset in Clash
sort_script: StringScript for sorting nodes
clash_proxies_style: StringStyle for Clash proxies output
clash_proxy_groups_style: StringStyle for Clash proxy groups output
Whether the export is authorized
Implementations§
Source§impl ExtraSettings
impl ExtraSettings
pub fn init_js_context(&mut self)
pub fn eval_filter_function( &mut self, _nodes: &mut Vec<Proxy>, _source_str: &str, ) -> Result<(), Box<dyn Error>>
pub async fn eval_sort_nodes( &mut self, _nodes: &mut Vec<Proxy>, ) -> Result<(), Box<dyn Error>>
pub async fn eval_get_rename_node_remark( &self, _node: &Proxy, _match_script: String, ) -> Result<String, Box<dyn Error>>
pub async fn eval_get_emoji_node_remark( &self, _node: &Proxy, _match_script: String, ) -> Result<String, Box<dyn Error>>
Trait Implementations§
Source§impl Debug for ExtraSettings
impl Debug for ExtraSettings
Auto Trait Implementations§
impl Freeze for ExtraSettings
impl RefUnwindSafe for ExtraSettings
impl Send for ExtraSettings
impl Sync for ExtraSettings
impl Unpin for ExtraSettings
impl UnwindSafe for ExtraSettings
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