pub struct WarpParser;
Implementations§
Source§impl WarpParser
impl WarpParser
pub fn new() -> Self
pub fn create_route_info( &self, method: &str, path: &str, handler_info: HandlerInfo, ) -> RouteInfo
pub fn register_route( &self, method: &str, path: &str, summary: Option<&str>, description: Option<&str>, parameters: Option<Vec<Parameter>>, request_body: Option<RequestBody>, responses: Option<HashMap<String, Response>>, ) -> RouteInfo
pub fn extract_warp_path_params(&self, path: &str) -> Vec<Parameter>
Trait Implementations§
Source§impl Default for WarpParser
impl Default for WarpParser
Source§impl FrameworkParser for WarpParser
impl FrameworkParser for WarpParser
fn parse_routes(&self, _app: &dyn Any) -> Vec<RouteInfo>
fn extract_handler_info(&self, _handler: &dyn Any) -> HandlerInfo
Auto Trait Implementations§
impl Freeze for WarpParser
impl RefUnwindSafe for WarpParser
impl Send for WarpParser
impl Sync for WarpParser
impl Unpin for WarpParser
impl UnwindSafe for WarpParser
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