pub struct SpaConfig {
pub base_path: String,
pub index_files: Vec<String>,
}Expand description
SPA 配置
Fields§
§base_path: String§index_files: Vec<String>Implementations§
Source§impl SpaConfig
impl SpaConfig
Sourcepub fn with_base_path(self, base_path: &str) -> Self
pub fn with_base_path(self, base_path: &str) -> Self
设置基础路径
Sourcepub fn with_index_files(self, files: &[&str]) -> Self
pub fn with_index_files(self, files: &[&str]) -> Self
设置索引文件(可多个)
Sourcepub fn add_index_file(self, file: &str) -> Self
pub fn add_index_file(self, file: &str) -> Self
添加索引文件
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpaConfig
impl RefUnwindSafe for SpaConfig
impl Send for SpaConfig
impl Sync for SpaConfig
impl Unpin for SpaConfig
impl UnwindSafe for SpaConfig
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