pub struct RouteBuilder { /* private fields */ }Expand description
Builder for configuring a route with metadata
Provides a fluent interface for setting route properties like description, tags, request/response schemas, etc.
Implementations§
Source§impl RouteBuilder
impl RouteBuilder
Sourcepub fn description(self, description: impl Into<String>) -> RouteBuilder
pub fn description(self, description: impl Into<String>) -> RouteBuilder
Set the route description
Sourcepub fn request_schema(self, schema: Value) -> RouteBuilder
pub fn request_schema(self, schema: Value) -> RouteBuilder
Set the request schema
Sourcepub fn response_schema(self, schema: Value) -> RouteBuilder
pub fn response_schema(self, schema: Value) -> RouteBuilder
Set the response schema
Sourcepub fn build(self) -> RouteMetadata
pub fn build(self) -> RouteMetadata
Build the route metadata
Auto Trait Implementations§
impl Freeze for RouteBuilder
impl RefUnwindSafe for RouteBuilder
impl Send for RouteBuilder
impl Sync for RouteBuilder
impl Unpin for RouteBuilder
impl UnwindSafe for RouteBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more