pub struct Config {
pub domain: String,
pub url: String,
pub ip: String,
pub port: String,
pub public: String,
pub runtime: String,
pub cors: Cors,
pub ssl: bool,
pub ssl_pkey: String,
pub ssl_certs: String,
pub debug: bool,
}Fields§
§domain: String域名
url: String服务器地址
ip: String服务器ip
port: String服务器端口
public: String对外访问目录
runtime: String运行目录
cors: Cors跨域请求配置
ssl: bool安全协议
ssl_pkey: String私钥文件
ssl_certs: String公钥文件
debug: bool开启调试
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