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
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more