pub struct Config {
pub root_dir: PathBuf,
pub config_dir: PathBuf,
pub log: bool,
pub extend: Vec<String>,
pub addon_hide: Vec<String>,
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>隐藏插件列表
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