pub struct Route<H, Arguments, Input> { /* private fields */ }Implementations§
Source§impl<H, Arguments, Input> Route<H, Arguments, Input>
impl<H, Arguments, Input> Route<H, Arguments, Input>
pub fn summary(self, summary: impl Into<String>) -> Route<H, Arguments, Input>
pub fn description( self, description: impl Into<String>, ) -> Route<H, Arguments, Input>
pub fn tag(self, tag: impl Into<String>) -> Route<H, Arguments, Input>
pub fn operation_id( self, operation_id: impl Into<String>, ) -> Route<H, Arguments, Input>
pub fn openapi( self, modifier: impl FnOnce(&mut Operation) + 'static, ) -> Route<H, Arguments, Input>
pub fn middleware<M>(self, middleware: M) -> Route<H, Arguments, Input>where
M: Middleware,
pub fn without_middleware<M>(self) -> Route<H, Arguments, Input>where
M: Middleware,
Auto Trait Implementations§
impl<H, Arguments, Input> !RefUnwindSafe for Route<H, Arguments, Input>
impl<H, Arguments, Input> !Send for Route<H, Arguments, Input>
impl<H, Arguments, Input> !Sync for Route<H, Arguments, Input>
impl<H, Arguments, Input> !UnwindSafe for Route<H, Arguments, Input>
impl<H, Arguments, Input> Freeze for Route<H, Arguments, Input>
impl<H, Arguments, Input> Unpin for Route<H, Arguments, Input>
impl<H, Arguments, Input> UnsafeUnpin for Route<H, Arguments, Input>
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