#[non_exhaustive]pub enum TrailingSlash {
Strip,
Add,
Ignore,
}Expand description
What a site does with a trailing slash. One policy per site, so a page has one address.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Strip
/a/ is redirected to /a (the default). The site root keeps its
slash.
Add
/a is redirected to /a/, except when the last segment holds a dot
(/style.css stays as it is).
Ignore
Both spellings reach the same route and neither is redirected.
Trait Implementations§
Source§impl Clone for TrailingSlash
impl Clone for TrailingSlash
impl Copy for TrailingSlash
Source§impl Debug for TrailingSlash
impl Debug for TrailingSlash
Source§impl Default for TrailingSlash
impl Default for TrailingSlash
impl Eq for TrailingSlash
Source§impl PartialEq for TrailingSlash
impl PartialEq for TrailingSlash
impl StructuralPartialEq for TrailingSlash
Auto Trait Implementations§
impl Forget for TrailingSlash
impl Freeze for TrailingSlash
impl RefUnwindSafe for TrailingSlash
impl Send for TrailingSlash
impl Sync for TrailingSlash
impl Unpin for TrailingSlash
impl UnsafeUnpin for TrailingSlash
impl UnwindSafe for TrailingSlash
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