ExtraSettings

Struct ExtraSettings 

Source
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: bool

Whether to enable the rule generator

§overwrite_original_rules: bool

Whether to overwrite original rules

§rename_array: RegexMatchConfigs

Rename operations to apply

§emoji_array: RegexMatchConfigs

Emoji operations to apply

§add_emoji: bool

Whether to add emoji

§remove_emoji: bool

Whether to remove emoji

§append_proxy_type: bool

Whether to append proxy type

§nodelist: bool

Whether to output as node list

§sort_flag: bool

Whether to sort nodes

§filter_deprecated: bool

Whether to filter deprecated nodes

§clash_new_field_name: bool

Whether to use new field names in Clash

§clash_script: bool

Whether to use scripts in Clash

§surge_ssr_path: String

Path to Surge SSR binary

§managed_config_prefix: String

Prefix for managed configs

§quanx_dev_id: String

QuantumultX 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: bool

Whether to use classical ruleset in Clash

§sort_script: String

Script for sorting nodes

§clash_proxies_style: String

Style for Clash proxies output

§clash_proxy_groups_style: String

Style for Clash proxy groups output

§authorized: bool

Whether the export is authorized

Implementations§

Source§

impl ExtraSettings

Source

pub fn init_js_context(&mut self)

Source

pub fn eval_filter_function( &mut self, _nodes: &mut Vec<Proxy>, _source_str: &str, ) -> Result<(), Box<dyn Error>>

Source

pub async fn eval_sort_nodes( &mut self, _nodes: &mut Vec<Proxy>, ) -> Result<(), Box<dyn Error>>

Source

pub async fn eval_get_rename_node_remark( &self, _node: &Proxy, _match_script: String, ) -> Result<String, Box<dyn Error>>

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExtraSettings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T