pub struct HttpApiParts {
pub router: Router,
pub openapi: OpenApi,
}Expand description
Standalone runtime router and its generated OpenAPI contract.
The document describes the exact routes installed on router.
It is generated in memory and is not written to the source tree.
Fields§
§router: RouterConfigured task API router.
openapi: OpenApiOpenAPI 3.1 document for the configured router.
Auto Trait Implementations§
impl !RefUnwindSafe for HttpApiParts
impl !UnwindSafe for HttpApiParts
impl Freeze for HttpApiParts
impl Send for HttpApiParts
impl Sync for HttpApiParts
impl Unpin for HttpApiParts
impl UnsafeUnpin for HttpApiParts
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request