Expand description
Models used by OpenAPI v2.
Structs§
- OpenAPI v2 (swagger) spec generic over parameter and schema.
- Represents the en/decoder for some MIME media range.
x-rust-coders
global extension for custom encoders and decoders.- Contact object.
- Default schema if your schema doesn’t have any custom fields.
- Raw version of schema.
- External Documentation object.
- Header object.
- Info object.
- Items object.
- License object.
- Wrapper for
mime::MediaRange
to supportBTree{Set, Map}
. - Operation object.
- Request parameter object.
- Path item object.
- Reference object.
- Response object.
- Security Scheme object.
- Tag object.
Enums§
- Possible formats for array values in parameter.
- Supported data types.
- Supported data type formats.
Either
from “either” crate. We can’t use that crate because we don’t want the enum to be tagged during de/serialization.- The HTTP method used for an operation.
- The protocol used for an operation.
- The location of the parameter.
- Wrapper for schema. This uses
Arc<RwLock<S>>
for interior mutability and differentiates raw schema from resolved schema (i.e., the one where$ref
references point to the actual schema). - The format used by spec (JSON/YAML).
- OpenAPI version.
Statics§
- Default coder for JSON.
- Media range for JSON.
- Default coder for YAML.
- Media range for YAML.
Type Aliases§
- OpenAPI v2 spec with defaults.
- Operation with default raw parameter and response.
- Parameter with the default raw schema.
- Path item with default parameter and response.
- Response with the default raw schema.
- OpenAPI v2 spec which can be traversed and resolved for codegen.
- Operation that can be traversed and resolved for codegen.
- Parameter that can be traversed and resolved for codegen.
- Path item that can be traversed and resolved for codegen.
- Response that can be traversed and resolved for codegen.