Crate swagger [−] [src]
Support crate for Swagger codegen.
Re-exports
pub use base64_format::ByteArray; |
pub use nullable_format::Nullable; |
pub use auth::AuthData; |
pub use auth::Authorization; |
pub use context::ContextBuilder; |
pub use context::ContextWrapper; |
pub use context::EmptyContext; |
pub use context::Has; |
pub use context::Pop; |
pub use context::Push; |
pub use connector::http_connector; |
pub use connector::https_connector; |
pub use connector::https_mutual_connector; |
pub use composites::CompositeNewService; |
pub use composites::CompositeService; |
pub use composites::GetPath; |
pub use composites::NotFound; |
pub use add_context::AddContext; |
pub use drop_context::DropContext; |
pub use request_parser::RequestParser; |
Modules
add_context |
Hyper service that adds a context to an incoming request and passes it on to a wrapped service. |
auth |
Authentication and authorization data structures |
base64_format |
Module for encoding API properties in base64. |
composites |
Module for combining hyper services |
connector |
Module with utilities for creating connectors with hyper. Utility methods for instantiating common connectors for clients. |
context |
Module for API context management. |
drop_context |
Hyper service that drops a context to an incoming request and passes it on to a wrapped service. |
nullable_format |
Module for encoding Nullable properties. |
request_parser |
Methods for retrieving swagger-related information from an HTTP request. |
Macros
make_context |
Macro for easily defining context values. The first argument should be a
context type created with |
make_context_ty |
Macro for easily defining context types. The first argument should be a
context type created with |
new_context_type |
Defines a struct that can be used to build up contexts recursively by adding one item to the context at a time, and a unit struct representing an empty context. The first argument is the name of the newly defined context struct that is used to add an item to the context, the second argument is the name of the empty context struct, and subsequent arguments are the types that can be stored in contexts built using these struct. |
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. |
XSpanId |
|
XSpanIdString |
Wrapper for a string being used as an X-Span-ID. |