pub struct Info {
pub title: String,
pub version: String,
pub summary: Option<String>,
pub description: Option<String>,
pub terms_of_service: Option<String>,
pub contact: Option<Contact>,
pub license: Option<License>,
pub x_fields: HashMap<String, Value>,
}
Expand description
Info Object
The object provides metadata about the API. The metadata can be used by the clients if needed, and can be presented in the Swagger-UI for convenience.
Fields§
§title: String
Required. The title of the application.
version: String
Required. Provides the version of the application API (not to be confused with the specification version).
summary: Option<String>
A short summary of the API. Available in v3.1 only
description: Option<String>
A short description of the application. GFM syntax can be used for rich text representation.
terms_of_service: Option<String>
The Terms of Service for the API.
contact: Option<Contact>
The contact information for the exposed API.
license: Option<License>
The license information for the exposed API.
x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.