pub struct RouteShape {
pub summary: Option<String>,
pub request: Option<RequestBody>,
pub parameters: Vec<Parameter>,
pub responses: BTreeMap<String, Response>,
pub components: BTreeMap<String, Value>,
pub gaps: Vec<Gap>,
pub aux_resolved: BTreeSet<String>,
}Expand description
Everything a handler signature says about its wire contract.
Fields§
§summary: Option<String>First paragraph of the handler’s doc comment, if it has one.
request: Option<RequestBody>§parameters: Vec<Parameter>§responses: BTreeMap<String, Response>Status code (or default) → response.
components: BTreeMap<String, Value>§gaps: Vec<Gap>§aux_resolved: BTreeSet<String>Canonical paths walked out of a workspace-local crate — resolved rather than reported, and named only so a summary can say where the shapes came from.
Trait Implementations§
Source§impl Clone for RouteShape
impl Clone for RouteShape
Source§impl Debug for RouteShape
impl Debug for RouteShape
Auto Trait Implementations§
impl Freeze for RouteShape
impl RefUnwindSafe for RouteShape
impl Send for RouteShape
impl Sync for RouteShape
impl Unpin for RouteShape
impl UnsafeUnpin for RouteShape
impl UnwindSafe for RouteShape
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