pub struct RouteDef {
pub method: Method,
pub path: &'static str,
pub rewrite: RewriteSpec,
pub policy: Option<&'static str>,
pub pipeline: Option<for<'a> fn(PartsCtx<'a>, RequestScope) -> Pin<Box<dyn Future<Output = Result<Body, ApigateError>> + Send + 'a>>>,
}Fields§
§method: Method§path: &'static str§rewrite: RewriteSpec§policy: Option<&'static str>§pipeline: Option<for<'a> fn(PartsCtx<'a>, RequestScope) -> Pin<Box<dyn Future<Output = Result<Body, ApigateError>> + Send + 'a>>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouteDef
impl RefUnwindSafe for RouteDef
impl Send for RouteDef
impl Sync for RouteDef
impl Unpin for RouteDef
impl UnsafeUnpin for RouteDef
impl UnwindSafe for RouteDef
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