pub struct OpenApiRoute { /* private fields */ }Expand description
Carries every endpoint a program states, in declaration order.
Implementations§
Source§impl OpenApiRoute
impl OpenApiRoute
Sourcepub fn labels(&self) -> Vec<String>
pub fn labels(&self) -> Vec<String>
Returns each composed selector as METHOD /path, in declaration order.
Sourcepub fn operations(&self) -> Vec<&'static str>
pub fn operations(&self) -> Vec<&'static str>
Returns the name each endpoint’s operation was declared under, in declaration order.
Sourcepub fn paths_object(&self) -> Value
pub fn paths_object(&self) -> Value
Returns the paths object this surface states, keyed by path and then by method.
An endpoint composed without a method states nothing a document can key, so it is left out.
Trait Implementations§
Source§impl Clone for OpenApiRoute
impl Clone for OpenApiRoute
Source§fn clone(&self) -> OpenApiRoute
fn clone(&self) -> OpenApiRoute
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 moreSource§impl Debug for OpenApiRoute
impl Debug for OpenApiRoute
Source§impl Default for OpenApiRoute
impl Default for OpenApiRoute
Source§fn default() -> OpenApiRoute
fn default() -> OpenApiRoute
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenApiRoute
impl RefUnwindSafe for OpenApiRoute
impl Send for OpenApiRoute
impl Sync for OpenApiRoute
impl Unpin for OpenApiRoute
impl UnsafeUnpin for OpenApiRoute
impl UnwindSafe for OpenApiRoute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.