pub struct RouteDoc {
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub tags: Vec<String>,
pub deprecated: bool,
pub path_params: Option<Value>,
pub query: Option<Value>,
pub request: Option<BodyDoc>,
pub responses: BTreeMap<u16, ResponseDoc>,
pub security: Option<Vec<String>>,
}Expand description
How a custom route appears in the service’s OpenAPI spec. Schemas are
JSON Schema (draft 2020-12) referring to #/components/schemas/….
Fields§
§operation_id: Option<String>Defaults to the handler name.
summary: Option<String>§description: Option<String>Defaults to the service name.
deprecated: bool§path_params: Option<Value>An object schema whose properties are the path parameters.
query: Option<Value>An object schema whose properties are the query parameters.
request: Option<BodyDoc>§responses: BTreeMap<u16, ResponseDoc>§security: Option<Vec<String>>Security scheme names; None derives them from the posture.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteDoc
impl<'de> Deserialize<'de> for RouteDoc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RouteDoc
Auto Trait Implementations§
impl Freeze for RouteDoc
impl RefUnwindSafe for RouteDoc
impl Send for RouteDoc
impl Sync for RouteDoc
impl Unpin for RouteDoc
impl UnsafeUnpin for RouteDoc
impl UnwindSafe for RouteDoc
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