model
ModuleThe canonical model, apart from schemas (crate::schema): what a
document describes, the same whichever OpenAPI version it was written in.
Contents
use utopia_openapi::Contact;pub struct ContactThe info.contact object.
use utopia_openapi::Encoding;pub struct EncodingHow one property of a multipart or form body is encoded.
use utopia_openapi::Example;pub struct ExampleA named example.
use utopia_openapi::ExternalDocumentation;pub struct ExternalDocumentationAn externalDocs object.
use utopia_openapi::Header;pub struct HeaderA response or encoding header.
use utopia_openapi::Info;pub struct InfoThe info object.
use utopia_openapi::License;pub struct LicenseThe info.license object.
use utopia_openapi::MediaType;pub struct MediaTypeA body in one media type.
use utopia_openapi::OAuthFlow;pub struct OAuthFlowOne OAuth flow.
use utopia_openapi::Operation;pub struct OperationOne operation: a method on a path.
use utopia_openapi::Parameter;pub struct ParameterA parameter of an operation.
use utopia_openapi::PathItem;pub struct PathItemThe operations available on one path.
use utopia_openapi::RequestBody;pub struct RequestBodyThe body of a request.
use utopia_openapi::Response;pub struct ResponseOne response of an operation.
use utopia_openapi::SecurityRequirement;pub struct SecurityRequirementOne security alternative: every scheme it names applies together, each with its OAuth scopes.
use utopia_openapi::SecurityScheme;pub struct SecuritySchemeA security scheme.
use utopia_openapi::Server;pub struct ServerA server the API is served from. OpenAPI 2.0's host, basePath and
schemes become one server per scheme.
use utopia_openapi::ServerVariable;pub struct ServerVariableA placeholder of a server URL.
use utopia_openapi::Tag;pub struct TagA tag, with its documentation.
use utopia_openapi::HttpMethod;pub enum HttpMethodAn HTTP method an operation can use, in the order OpenAPI lists them.
use utopia_openapi::ParameterLocation;pub enum ParameterLocationWhere a parameter is sent.
use utopia_openapi::SecuritySchemeType;pub enum SecuritySchemeTypeThe kind of a security scheme.
pub type Map<T> = IndexMap<String, T>A map keyed by names from the document, in document order.