Enum poem::middleware::TrailingSlash
source · pub enum TrailingSlash {
Trim,
MergeOnly,
Always,
}
Expand description
Determines the behavior of the NormalizePath
middleware.
Variants
Trim
Trim trailing slashes from the end of the path.
MergeOnly
Only merge any present multiple trailing slashes.
Always
Always add a trailing slash to the end of the path.
Trait Implementations
sourceimpl Clone for TrailingSlash
impl Clone for TrailingSlash
sourcefn clone(&self) -> TrailingSlash
fn clone(&self) -> TrailingSlash
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TrailingSlash
impl Debug for TrailingSlash
sourceimpl Default for TrailingSlash
impl Default for TrailingSlash
impl Copy for TrailingSlash
Auto Trait Implementations
impl RefUnwindSafe for TrailingSlash
impl Send for TrailingSlash
impl Sync for TrailingSlash
impl Unpin for TrailingSlash
impl UnwindSafe for TrailingSlash
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more