pub struct DocumentedRoute {
pub route: Route,
pub path_docs: Vec<PathInfo>,
}Expand description
文档化的路由信息
Fields§
§route: RouteSilent框架的原始路由
path_docs: Vec<PathInfo>路径文档信息
Implementations§
Source§impl DocumentedRoute
impl DocumentedRoute
Sourcepub fn add_path_doc(self, path_info: PathInfo) -> Self
pub fn add_path_doc(self, path_info: PathInfo) -> Self
添加路径文档信息
Sourcepub fn add_path_docs(self, path_docs: Vec<PathInfo>) -> Self
pub fn add_path_docs(self, path_docs: Vec<PathInfo>) -> Self
批量添加路径文档
Sourcepub fn into_route(self) -> Route
pub fn into_route(self) -> Route
获取底层的Silent路由
Trait Implementations§
Source§impl Clone for DocumentedRoute
impl Clone for DocumentedRoute
Source§fn clone(&self) -> DocumentedRoute
fn clone(&self) -> DocumentedRoute
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 DocumentedRoute
impl !RefUnwindSafe for DocumentedRoute
impl Send for DocumentedRoute
impl Sync for DocumentedRoute
impl Unpin for DocumentedRoute
impl !UnwindSafe for DocumentedRoute
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