pub struct Config {Show 13 fields
pub root_dir: PathBuf,
pub config_dir: PathBuf,
pub log: bool,
pub extend: Vec<String>,
pub addon_hide: Vec<String>,
pub web_service: bool,
pub db_backup: bool,
pub backup_cycle: bool,
pub backup_regular: bool,
pub cache: bool,
pub token_exp: u64,
pub token: String,
pub pub_key_path: String,
}Expand description
框架配置
Fields§
§root_dir: PathBuf根目录
config_dir: PathBuf配置目录
log: bool启用日志
extend: Vec<String>启动扩展列表
addon_hide: Vec<String>隐藏插件列表
web_service: boolWEB页面服务
db_backup: bool数据库备份服务
backup_cycle: bool周期备份服务
backup_regular: bool定时备份服务
cache: bool缓存启动
token_exp: u64密钥失效时间
token: String密钥
pub_key_path: Stringpem路径
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
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