pub struct ConfigFile {
pub server: Option<ServerSection>,
pub proxies: Vec<ProxySection>,
pub token: Option<String>,
pub totp_secret: Option<String>,
pub reverse_proxies: Vec<ReverseProxySection>,
pub reverse_proxy_server: Option<ReverseProxyServerSection>,
pub reverse_proxy_client: Option<ReverseProxyClientSection>,
}Expand description
TOML configuration file structure
Fields§
§server: Option<ServerSection>§proxies: Vec<ProxySection>§token: Option<String>§totp_secret: Option<String>§reverse_proxies: Vec<ReverseProxySection>§reverse_proxy_server: Option<ReverseProxyServerSection>§reverse_proxy_client: Option<ReverseProxyClientSection>Implementations§
Source§impl ConfigFile
impl ConfigFile
Sourcepub fn get_runtime_mode(&self) -> String
pub fn get_runtime_mode(&self) -> String
Determine runtime mode from configuration 注意:此方法仅用于日志显示,实际运行时会根据配置启动所有服务
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigFile
impl Debug for ConfigFile
Source§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
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
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnwindSafe for ConfigFile
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