Struct jsona_openapi::Server
source · [−]pub struct Server {
pub url: String,
pub description: Option<String>,
pub variables: Option<IndexMap<String, ServerVariable>>,
}
Expand description
An object representing a Server.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#serverObject.
Fields
url: String
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.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
sourcefn 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
sourceimpl PartialEq<Server> for Server
impl PartialEq<Server> for Server
impl StructuralPartialEq for Server
Auto Trait Implementations
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more