pub struct SubscriptionSettings {Show 49 fields
pub happ_link_enable: bool,
pub sub_info_node_enable: bool,
pub sub_calendar_expire_inclusive: bool,
pub sub_expired_template: String,
pub sub_traffic_depleted_template: String,
pub happ: HappSettings,
pub sub_enable: bool,
pub sub_json_enable: bool,
pub sub_json_auto_detect: bool,
pub sub_json_always_array: bool,
pub sub_json_user_agent_regex: String,
pub sub_clash_auto_detect: bool,
pub sub_clash_user_agent_regex: String,
pub sub_title: String,
pub sub_support_url: String,
pub sub_profile_mode: String,
pub sub_profile_url: String,
pub sub_announce: String,
pub sub_enable_routing: bool,
pub sub_routing_rules: String,
pub sub_incy_enable_routing: bool,
pub sub_incy_routing_rules: String,
pub sub_listen: String,
pub sub_port: u16,
pub sub_path: String,
pub sub_domain: String,
pub sub_cert_file: String,
pub sub_key_file: String,
pub sub_updates: u32,
pub external_traffic_inform_enable: bool,
pub external_traffic_inform_uri: String,
pub restart_xray_on_client_disable: bool,
pub sub_encrypt: bool,
pub sub_uri: String,
pub sub_json_path: String,
pub sub_json_uri: String,
pub sub_clash_enable: bool,
pub sub_clash_path: String,
pub sub_clash_uri: String,
pub sub_clash_enable_routing: bool,
pub sub_clash_rules: String,
pub sub_json_mux: String,
pub sub_json_rules: String,
pub sub_json_routing_rules: String,
pub sub_json_dns: String,
pub sub_json_final_mask: String,
pub sub_json_observatory: String,
pub sub_theme_dir: String,
pub sub_hide_settings: bool,
}Expand description
Subscription server and generated-format settings.
Fields§
§happ_link_enable: boolEnables local Happ Crypt5 link generation.
sub_info_node_enable: boolAdds a synthetic usage/status node to subscriptions.
sub_calendar_expire_inclusive: boolPresents calendar expiry as the inclusive end of the previous month.
sub_expired_template: StringSubscription template for expired clients.
sub_traffic_depleted_template: StringSubscription template for clients with depleted traffic.
happ: HappSettingsHapp application settings, flattened on the wire.
sub_enable: boolEnables the subscription server.
sub_json_enable: boolEnables JSON subscriptions.
sub_json_auto_detect: boolAuto-detects JSON subscription clients.
sub_json_always_array: boolAlways emits a JSON array.
sub_json_user_agent_regex: StringUser-agent regex for JSON subscriptions.
sub_clash_auto_detect: boolAuto-detects Clash clients.
sub_clash_user_agent_regex: StringUser-agent regex for Clash subscriptions.
sub_title: StringSubscription title.
sub_support_url: StringSupport URL.
sub_profile_mode: StringProfile page mode: none (default), builtin, or custom.
sub_profile_url: StringProfile URL.
sub_announce: StringAnnouncement text.
sub_enable_routing: boolEnables base subscription routing rules.
sub_routing_rules: StringBase subscription routing rules.
sub_incy_enable_routing: boolEnables Incy routing rules.
sub_incy_routing_rules: StringIncy routing rules.
sub_listen: StringSubscription listener IP.
sub_port: u16Subscription server port.
sub_path: StringBase subscription path.
sub_domain: StringSubscription domain.
sub_cert_file: StringSubscription TLS certificate path.
sub_key_file: StringSubscription TLS private-key path.
sub_updates: u32Subscription update interval.
external_traffic_inform_enable: boolEnables external traffic reporting.
external_traffic_inform_uri: StringExternal traffic reporting URI.
restart_xray_on_client_disable: boolRestarts Xray when a client is disabled.
sub_encrypt: boolEncrypts subscription identifiers.
sub_uri: StringPublic base subscription URI.
sub_json_path: StringJSON subscription path.
sub_json_uri: StringPublic JSON subscription URI.
sub_clash_enable: boolEnables Clash subscriptions.
sub_clash_path: StringClash subscription path.
sub_clash_uri: StringPublic Clash subscription URI.
sub_clash_enable_routing: boolEnables Clash routing.
sub_clash_rules: StringClash routing rules.
sub_json_mux: StringJSON mux template.
sub_json_rules: StringJSON routing rules.
sub_json_routing_rules: StringAdditional JSON subscription routing rules.
sub_json_dns: StringDNS servers included in JSON subscriptions.
sub_json_final_mask: StringJSON final-mask template.
sub_json_observatory: StringJSON observatory template merged into generated subscriptions.
sub_theme_dir: StringSubscription theme directory.
sub_hide_settings: boolHides settings from subscription output.
Trait Implementations§
Source§impl Clone for SubscriptionSettings
impl Clone for SubscriptionSettings
Source§impl Debug for SubscriptionSettings
impl Debug for SubscriptionSettings
Source§impl Default for SubscriptionSettings
impl Default for SubscriptionSettings
Source§impl<'de> Deserialize<'de> for SubscriptionSettingswhere
SubscriptionSettings: Default,
impl<'de> Deserialize<'de> for SubscriptionSettingswhere
SubscriptionSettings: Default,
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>,
impl Eq for SubscriptionSettings
Source§impl PartialEq for SubscriptionSettings
impl PartialEq for SubscriptionSettings
Source§impl Serialize for SubscriptionSettings
impl Serialize for SubscriptionSettings
impl StructuralPartialEq for SubscriptionSettings
Auto Trait Implementations§
impl Freeze for SubscriptionSettings
impl RefUnwindSafe for SubscriptionSettings
impl Send for SubscriptionSettings
impl Sync for SubscriptionSettings
impl Unpin for SubscriptionSettings
impl UnsafeUnpin for SubscriptionSettings
impl UnwindSafe for SubscriptionSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more