pub struct Server {
pub url: String,
pub description: Option<String>,
pub variables: HashMap<String, ServerVariable>,
pub x_fields: HashMap<String, Value>,
}
Expand description
Server Object
An object representing a Server.
Available in v3 only.
Fields§
§url: String
REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions will be made when a variable is named in {brackets}.
description: Option<String>
An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.
variables: HashMap<String, ServerVariable>
A map between a variable name and its value. The value is used for substitution in the server’s URL template.
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.