Expand description
Rust implementation of Openapi Spec V3.1.
Modules§
- content
- Implements content object for request body and response.
- encoding
- Implements encoding object for content.
- example
- Implements OpenAPI Example Object can be used to define examples for
Responses andRequestBodys. - extensions
- Implements OpenAPI Extensions.
- external_
docs - Implements OpenAPI External Docs Object types.
- header
- Implements OpenAPI Header Object types.
- info
- Implements OpenAPI Metadata types.
- link
- Implements Open API Link Object for responses.
- path
- Implements OpenAPI Path Object types.
- request_
body - Implements OpenAPI Request Body types.
- response
- Implements OpenApi Responses.
- schema
- Implements OpenAPI Schema Object types which can be used to define field properties, enum values, array or object types.
- security
- Implements OpenAPI Security Schema types.
- server
- Implements OpenAPI Server Object types to configure target servers.
- tag
- Implements OpenAPI Tag Object types.
- xml
- Implements OpenAPI Xml Object types.
Structs§
- AllOf
- AllOf Composite Object component holds multiple components together where API endpoint will return a combination of all of them.
- AllOf
Builder - Builder for
AllOfwith chainable configuration methods to create a newAllOf. - Array
- Array represents
Vecorslicetype of items. - Array
Builder - Builder for
Arraywith chainable configuration methods to create a newArray. - Components
- Implements OpenAPI Components Object which holds supported reusable objects.
- Components
Builder - Builder for
Componentswith chainable configuration methods to create a newComponents. - Contact
- OpenAPI Contact information of the API.
- Contact
Builder - Builder for
Contactwith chainable configuration methods to create a newContact. See theInfoBuilderfor combined usage example. - Content
- Content holds request body content or response content.
- Content
Builder - Builder for
Contentwith chainable configuration methods to create a newContent. - Discriminator
- OpenAPI Discriminator object which can be optionally used together with
OneOfcomposite object. - External
Docs - Reference of external resource allowing extended documentation.
- Header
- Implements OpenAPI Header Object for response headers.
- Header
Builder - Builder for
Headerwith chainable configuration methods to create a newHeader. - Info
- OpenAPI Info object represents metadata of the API.
- Info
Builder - Builder for
Infowith chainable configuration methods to create a newInfo. - License
- OpenAPI License information of the API.
- License
Builder - Builder for
Licensewith chainable configuration methods to create a newLicense. - Object
- Implements subset of OpenAPI Schema Object which allows
adding other
Schemas as properties to thisSchema. - Object
Builder - Builder for
Objectwith chainable configuration methods to create a newObject. - OneOf
- OneOf Composite Object component holds multiple components together where API endpoint could return any of them.
- OneOf
Builder - Builder for
OneOfwith chainable configuration methods to create a newOneOf. - OpenApi
- Root object of the OpenAPI document.
- Open
ApiBuilder - Builder for
OpenApiwith chainable configuration methods to create a newOpenApi. - Path
Item - Implements OpenAPI Path Item Object what describes
Operations available on a single path. - Paths
- Implements OpenAPI Paths Object.
- Paths
Builder - Builder for
Pathswith chainable configuration methods to create a newPaths. - Ref
- Implements OpenAPI Reference Object that can be used to reference
reusable components such as
Schemas orResponses. - Response
- Implements OpenAPI Response Object.
- Response
Builder - Builder for
Responsewith chainable configuration methods to create a newResponse. - Responses
- Implements OpenAPI Responses Object.
- Responses
Builder - Builder for
Responseswith chainable configuration methods to create a newResponses. - Security
Requirement - OpenAPI security requirement object.
- Server
- Represents target server object. It can be used to alter server connection for path operations.
- Server
Builder - Builder for
Serverwith chainable configuration methods to create a newServer. - Server
Variable - Implements OpenAPI Server Variable used to substitute variables in
Server::url. - Server
Variable Builder - Builder for
ServerVariablewith chainable configuration methods to create a newServerVariable. - Tag
- Implements OpenAPI Tag Object.
Enums§
- Deprecated
- Value used to indicate whether reusable schema, parameter or operation is deprecated.
- Http
Method - HTTP method of the operation.
- Known
Format - Known schema format modifier property to provide fine detail of the primitive type.
- Open
ApiVersion - Represents available OpenAPI versions.
- RefOr
- A
Refor some other typeT. - Required
- Value used to indicate whether parameter or property is required.
- Schema
- Is super type for OpenAPI Schema Object. Schema is reusable resource what can be
referenced from path operations and other components using
Ref. - Schema
Format - Additional format for
SchemaTypeto fine tune the data type used. If the format is not supported by the UI it may default back toSchemaTypealone. Format is an open value, so you can use any formats, even not those defined by the OpenAPI Specification. - Type
- Represents data type fragment of
Schema.