pub enum Route {
Id,
Const(String),
SetExtension(&'static str),
Custom(Box<dyn Fn(&Path) -> PathBuf>),
}
Expand description
Explains how to map the relative file system path to a relative URL.
Variants§
Id
Keep file system path and url identical
Const(String)
Disregard file system path and always use this constant value.
SetExtension(&'static str)
Replace extension in file system path with this value.
Custom(Box<dyn Fn(&Path) -> PathBuf>)
Auto Trait Implementations§
impl Freeze for Route
impl !RefUnwindSafe for Route
impl !Send for Route
impl !Sync for Route
impl Unpin for Route
impl !UnwindSafe for Route
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