pub struct ReDocMiddleware { /* private fields */ }Expand description
ReDoc 中间件
以 Middleware 方式提供 ReDoc 文档页面。 当请求匹配 ReDoc 路径时拦截返回,否则透传到下游处理器。
Implementations§
Trait Implementations§
Source§impl Clone for ReDocMiddleware
impl Clone for ReDocMiddleware
Source§fn clone(&self) -> ReDocMiddleware
fn clone(&self) -> ReDocMiddleware
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReDocMiddleware
impl RefUnwindSafe for ReDocMiddleware
impl Send for ReDocMiddleware
impl Sync for ReDocMiddleware
impl Unpin for ReDocMiddleware
impl UnsafeUnpin for ReDocMiddleware
impl UnwindSafe for ReDocMiddleware
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