pub struct Endpoint {
pub operation_id: String,
pub method: HttpMethod,
pub path: String,
pub doc: Option<String>,
pub parameters: Vec<Parameter>,
pub request_body: Option<RequestBody>,
pub responses: Vec<Response>,
}Expand description
HTTP endpoint definition
Fields§
§operation_id: String§method: HttpMethod§path: String§doc: Option<String>§parameters: Vec<Parameter>§request_body: Option<RequestBody>§responses: Vec<Response>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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