Skip to main content

AllSetting

Struct AllSetting 

Source
pub struct AllSetting {
Show 74 fields pub web_listen: String, pub web_domain: String, pub web_port: i32, pub web_cert_file: String, pub web_key_file: String, pub web_base_path: String, pub session_max_age: i32, pub page_size: i32, pub expire_diff: i32, pub traffic_diff: i32, pub remark_model: String, pub datepicker: String, pub tg_bot_enable: bool, pub tg_bot_token: String, pub tg_bot_proxy: String, pub tg_bot_api_server: String, pub tg_bot_chat_id: String, pub tg_run_time: String, pub tg_bot_backup: bool, pub tg_bot_login_notify: bool, pub tg_cpu: i32, pub tg_lang: String, pub time_location: String, pub two_factor_enable: bool, pub two_factor_token: String, pub sub_enable: bool, pub sub_json_enable: bool, pub sub_title: String, pub sub_support_url: String, pub sub_profile_url: String, pub sub_announce: String, pub sub_enable_routing: bool, pub sub_routing_rules: String, pub sub_listen: String, pub sub_port: i32, pub sub_path: String, pub sub_domain: String, pub sub_cert_file: String, pub sub_key_file: String, pub sub_updates: i32, pub external_traffic_inform_enable: bool, pub external_traffic_inform_uri: String, pub sub_encrypt: bool, pub sub_show_info: 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_json_fragment: String, pub sub_json_noises: String, pub sub_json_mux: String, pub sub_json_rules: String, pub ldap_enable: bool, pub ldap_host: String, pub ldap_port: i32, pub ldap_use_tls: bool, pub ldap_bind_dn: String, pub ldap_password: String, pub ldap_base_dn: String, pub ldap_user_filter: String, pub ldap_user_attr: String, pub ldap_vless_field: String, pub ldap_sync_cron: String, pub ldap_flag_field: String, pub ldap_truthy_values: String, pub ldap_invert_flag: bool, pub ldap_inbound_tags: String, pub ldap_auto_create: bool, pub ldap_auto_delete: bool, pub ldap_default_total_gb: i32, pub ldap_default_expiry_days: i32, pub ldap_default_limit_ip: i32,
}

Fields§

§web_listen: String§web_domain: String§web_port: i32§web_cert_file: String§web_key_file: String§web_base_path: String§session_max_age: i32§page_size: i32§expire_diff: i32§traffic_diff: i32§remark_model: String§datepicker: String§tg_bot_enable: bool§tg_bot_token: String§tg_bot_proxy: String§tg_bot_api_server: String§tg_bot_chat_id: String§tg_run_time: String§tg_bot_backup: bool§tg_bot_login_notify: bool§tg_cpu: i32§tg_lang: String§time_location: String§two_factor_enable: bool§two_factor_token: String§sub_enable: bool§sub_json_enable: bool§sub_title: String§sub_support_url: String§sub_profile_url: String§sub_announce: String§sub_enable_routing: bool§sub_routing_rules: String§sub_listen: String§sub_port: i32§sub_path: String§sub_domain: String§sub_cert_file: String§sub_key_file: String§sub_updates: i32§external_traffic_inform_enable: bool§external_traffic_inform_uri: String§sub_encrypt: bool§sub_show_info: bool§sub_uri: String§sub_json_path: String§sub_json_uri: String§sub_clash_enable: bool§sub_clash_path: String§sub_clash_uri: String§sub_json_fragment: String§sub_json_noises: String§sub_json_mux: String§sub_json_rules: String§ldap_enable: bool§ldap_host: String§ldap_port: i32§ldap_use_tls: bool§ldap_bind_dn: String§ldap_password: String§ldap_base_dn: String§ldap_user_filter: String§ldap_user_attr: String§ldap_vless_field: String§ldap_sync_cron: String§ldap_flag_field: String§ldap_truthy_values: String§ldap_invert_flag: bool§ldap_inbound_tags: String§ldap_auto_create: bool§ldap_auto_delete: bool§ldap_default_total_gb: i32§ldap_default_expiry_days: i32§ldap_default_limit_ip: i32

Trait Implementations§

Source§

impl Clone for AllSetting

Source§

fn clone(&self) -> AllSetting

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AllSetting

Source§

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

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

impl Default for AllSetting

Source§

fn default() -> AllSetting

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

impl<'de> Deserialize<'de> for AllSetting

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AllSetting

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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<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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,