Crate swagger [] [src]

Support crate for Swagger codegen.

Reexports

pub use base64_format::ByteArray;
pub use nullable_format::Nullable;
pub use auth::Authorization;
pub use auth::AuthData;

Modules

auth

Authentication and authorization data structures

base64_format

Module for encoding API properties in base64.

nullable_format

Module for encoding Nullable properties.

Structs

ApiError

Very simple error type - just holds a description of the error. This is useful for human diagnosis and troubleshooting, but not for applications to parse. The justification for this is to deny applications visibility into the communication layer, forcing the application code to act solely on the logical responses that the API provides, promoting abstraction in the application code.

Context

Request context, both as received in a server handler or as sent in a client request. When REST microservices are chained, the Context passes data from the server API to any further HTTP requests.

XSpanId

X-Span-ID header, used to track a request through a chain of microservices.