pub struct EndpointSchema {
pub path: String,
pub method: Method,
pub request_schema: Option<RootSchema>,
pub response_schema: Option<RootSchema>,
pub query_schema: Option<RootSchema>,
pub params_schema: Option<RootSchema>,
}Available on crate feature
schema only.Expand description
Metadata describing a single endpoint for documentation and codegen.
Fields§
§path: StringRoute path template.
method: MethodHTTP method.
request_schema: Option<RootSchema>JSON request body schema.
response_schema: Option<RootSchema>JSON response schema.
query_schema: Option<RootSchema>Query string schema.
params_schema: Option<RootSchema>Path parameter schema.
Trait Implementations§
Source§impl Clone for EndpointSchema
impl Clone for EndpointSchema
Source§fn clone(&self) -> EndpointSchema
fn clone(&self) -> EndpointSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EndpointSchema
impl RefUnwindSafe for EndpointSchema
impl Send for EndpointSchema
impl Sync for EndpointSchema
impl Unpin for EndpointSchema
impl UnsafeUnpin for EndpointSchema
impl UnwindSafe for EndpointSchema
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