pub struct OpenApiOperation {
pub method: &'static str,
pub path: &'static str,
}Expand description
A single method/path operation parsed from the OpenAPI spec’s paths: section.
Fields§
§method: &'static strThe HTTP method, upper-cased (e.g. "GET").
path: &'static strThe request path template, as written in the spec (e.g. "/order_products").
Trait Implementations§
Source§impl Clone for OpenApiOperation
impl Clone for OpenApiOperation
Source§fn clone(&self) -> OpenApiOperation
fn clone(&self) -> OpenApiOperation
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 moreimpl Copy for OpenApiOperation
Source§impl Debug for OpenApiOperation
impl Debug for OpenApiOperation
impl Eq for OpenApiOperation
Source§impl PartialEq for OpenApiOperation
impl PartialEq for OpenApiOperation
impl StructuralPartialEq for OpenApiOperation
Auto Trait Implementations§
impl Freeze for OpenApiOperation
impl RefUnwindSafe for OpenApiOperation
impl Send for OpenApiOperation
impl Sync for OpenApiOperation
impl Unpin for OpenApiOperation
impl UnsafeUnpin for OpenApiOperation
impl UnwindSafe for OpenApiOperation
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