RouteDocAppendExt

Trait RouteDocAppendExt 

Source
pub trait RouteDocAppendExt {
    // Required methods
    fn get_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
    fn post_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
    fn put_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
    fn delete_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
    fn patch_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
    fn options_with_doc(
        self,
        handler: Arc<dyn Handler>,
        summary: &str,
        description: &str,
    ) -> Self;
}
Expand description

便捷追加:同时挂载处理器并标注文档

Required Methods§

Source

fn get_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source

fn post_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source

fn put_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source

fn delete_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source

fn patch_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source

fn options_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RouteDocAppendExt for Route

Source§

fn get_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source§

fn post_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source§

fn put_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source§

fn delete_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source§

fn patch_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Source§

fn options_with_doc( self, handler: Arc<dyn Handler>, summary: &str, description: &str, ) -> Self

Implementors§