pub struct EffectiveDefaults {Show 21 fields
pub expire_diff: i64,
pub traffic_diff: i64,
pub page_size: i64,
pub default_cert: String,
pub default_key: String,
pub tg_bot_enable: bool,
pub sub_theme_dir: String,
pub sub_enable: bool,
pub sub_json_enable: bool,
pub sub_clash_enable: bool,
pub sub_title: String,
pub sub_uri: String,
pub sub_json_uri: String,
pub sub_clash_uri: String,
pub datepicker: String,
pub ip_limit_enable: bool,
pub access_log_enable: bool,
pub web_domain: String,
pub sub_domain: String,
pub dev_channel_enable: bool,
pub is_dev_build: bool,
}Expand description
Host-derived defaults used by the panel UI.
Fields§
§expire_diff: i64Expiration warning window.
traffic_diff: i64Traffic warning percentage.
page_size: i64Page size.
default_cert: StringDefault certificate path.
default_key: StringDefault key path.
tg_bot_enable: boolWhether Telegram is enabled.
sub_theme_dir: StringSubscription theme directory.
sub_enable: boolWhether the subscription server is enabled.
sub_json_enable: boolWhether JSON subscriptions are enabled.
sub_clash_enable: boolWhether Clash subscriptions are enabled.
sub_title: StringSubscription title.
sub_uri: StringBase subscription URI.
sub_json_uri: StringJSON subscription URI.
sub_clash_uri: StringClash subscription URI.
datepicker: StringCalendar type.
ip_limit_enable: boolWhether IP limits are active.
access_log_enable: boolWhether access logging is active.
web_domain: StringWeb domain.
sub_domain: StringSubscription domain.
dev_channel_enable: boolWhether the development update channel is enabled.
is_dev_build: boolWhether this panel is a development build.
Trait Implementations§
Source§impl Clone for EffectiveDefaults
impl Clone for EffectiveDefaults
Source§impl Debug for EffectiveDefaults
impl Debug for EffectiveDefaults
Source§impl Default for EffectiveDefaults
impl Default for EffectiveDefaults
Source§impl<'de> Deserialize<'de> for EffectiveDefaultswhere
EffectiveDefaults: Default,
impl<'de> Deserialize<'de> for EffectiveDefaultswhere
EffectiveDefaults: 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EffectiveDefaults
impl PartialEq for EffectiveDefaults
Source§impl Serialize for EffectiveDefaults
impl Serialize for EffectiveDefaults
impl StructuralPartialEq for EffectiveDefaults
Auto Trait Implementations§
impl Freeze for EffectiveDefaults
impl RefUnwindSafe for EffectiveDefaults
impl Send for EffectiveDefaults
impl Sync for EffectiveDefaults
impl Unpin for EffectiveDefaults
impl UnsafeUnpin for EffectiveDefaults
impl UnwindSafe for EffectiveDefaults
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
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<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> ⓘ
Converts
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> ⓘ
Converts
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