pub struct StaticConfig {
pub path: String,
pub enabled: bool,
}Expand description
静态文件配置
Fields§
§path: String静态文件目录
enabled: bool是否启用静态文件服务
Trait Implementations§
Source§impl Clone for StaticConfig
impl Clone for StaticConfig
Source§fn clone(&self) -> StaticConfig
fn clone(&self) -> StaticConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticConfig
impl Debug for StaticConfig
Source§impl Default for StaticConfig
impl Default for StaticConfig
Source§impl<'de> Deserialize<'de> for StaticConfig
impl<'de> Deserialize<'de> for StaticConfig
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 StaticConfig
impl RefUnwindSafe for StaticConfig
impl Send for StaticConfig
impl Sync for StaticConfig
impl Unpin for StaticConfig
impl UnsafeUnpin for StaticConfig
impl UnwindSafe for StaticConfig
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