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§
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
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.