pub struct Config {Show 14 fields
pub log: bool,
pub extend: Vec<String>,
pub addon_hide: Vec<String>,
pub wss: bool,
pub web: bool,
pub web_service: bool,
pub cache: bool,
pub token_exp: u64,
pub token: String,
pub pub_key_path: String,
pub analysis: Vec<String>,
pub app_addon: Vec<String>,
pub root_path: String,
pub db_sync: DbSync,
}Expand description
框架配置
Fields§
§log: bool启用日志
extend: Vec<String>启动扩展列表
addon_hide: Vec<String>隐藏插件列表
wss: bool开启wss请求
web: bool开启http请求
web_service: boolWEB页面服务
cache: bool缓存启动
token_exp: u64密钥失效时间
token: String服务器令牌
pub_key_path: String证书路径
analysis: Vec<String>分析系统
app_addon: Vec<String>APP可用插件
root_path: String运行目录
db_sync: DbSync数据库同步配置
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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