pub struct Server {
pub url: String,
pub description: Option<String>,
pub variables: Option<IndexMap<String, ServerVariable>>,
pub extensions: IndexMap<String, Value>,
}
Expand description
An object representing a Server.
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: Option<IndexMap<String, ServerVariable>>
A map between a variable name and its value. The value is used for substitution in the server’s URL template.
extensions: IndexMap<String, Value>
Inline extensions to this object.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more