pub struct ServerVariable {
pub enum_values: Vec<String>,
pub default: String,
pub description: Option<String>,
pub x_fields: HashMap<String, Value>,
}
Expand description
Server Variable Object
An object representing a Server Variable for server URL template substitution.
Fields§
§enum_values: Vec<String>
An enumeration of string values to be used if the substitution options are from a limited set. The array SHOULD NOT be empty.
default: String
REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object’s treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value SHOULD exist in the enum’s values.
description: Option<String>
An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.
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.
Trait Implementations§
Source§impl Clone for ServerVariable
impl Clone for ServerVariable
Source§fn clone(&self) -> ServerVariable
fn clone(&self) -> ServerVariable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more