Struct openapiv3::Server [−][src]
pub struct Server { pub url: String, pub description: Option<String>, pub variables: Option<IndexMap<String, ServerVariable>>, pub extensions: IndexMap<String, Value>, }
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
impl<'de> Deserialize<'de> for Server
[src]
impl<'de> Deserialize<'de> for Server
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Server
[src]
impl StructuralPartialEq for Server
[src]Auto Trait Implementations
impl RefUnwindSafe for Server
impl RefUnwindSafe for Server
impl UnwindSafe for Server
impl UnwindSafe for Server
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]