pub struct Config {
pub log: bool,
pub extend: Vec<String>,
pub addon_hide: Vec<String>,
pub wss: bool,
pub web: bool,
pub token_exp: u64,
pub token: String,
}Expand description
框架配置
Fields§
§log: bool启用日志
extend: Vec<String>启动扩展列表
addon_hide: Vec<String>隐藏插件列表
wss: bool开启wss请求
web: bool开启http请求
token_exp: u64密钥失效时间
token: String服务器令牌
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