pub struct DevConfig {
pub port: Option<u16>,
pub host: Option<String>,
pub hot: Option<bool>,
pub proxy: Option<HashMap<String, String>>,
}Expand description
开发服务器配置
Fields§
§port: Option<u16>开发服务器端口
host: Option<String>开发服务器主机
hot: Option<bool>是否启用热更新
proxy: Option<HashMap<String, String>>代理配置
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DevConfig
impl<'de> Deserialize<'de> for DevConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DevConfig
impl RefUnwindSafe for DevConfig
impl Send for DevConfig
impl Sync for DevConfig
impl Unpin for DevConfig
impl UnsafeUnpin for DevConfig
impl UnwindSafe for DevConfig
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