pub struct ServerVariable {
pub enumeration: Option<Vec<String>>,
pub default_value: String,
pub description: Option<String>,
pub extensions: Extensions,
}Expand description
A substitution variable for a templated Server::url.
Fields§
§enumeration: Option<Vec<String>>The set of values this variable may take.
When present it must not be empty, and must contain
default_value.
default_value: StringThe value to use for substitution when none is supplied.
Unlike JSON Schema’s default, this field is required.
description: Option<String>A description of this variable. CommonMark syntax may be used.
extensions: ExtensionsSpecification extensions.
Implementations§
Trait Implementations§
Source§impl Clone for ServerVariable
impl Clone for ServerVariable
Source§impl Debug for ServerVariable
impl Debug for ServerVariable
Source§impl Default for ServerVariable
impl Default for ServerVariable
Source§impl<'de> Deserialize<'de> for ServerVariable
impl<'de> Deserialize<'de> for ServerVariable
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
impl Eq for ServerVariable
Source§impl PartialEq for ServerVariable
impl PartialEq for ServerVariable
Source§impl Serialize for ServerVariable
impl Serialize for ServerVariable
impl StructuralPartialEq for ServerVariable
Auto Trait Implementations§
impl Freeze for ServerVariable
impl RefUnwindSafe for ServerVariable
impl Send for ServerVariable
impl Sync for ServerVariable
impl Unpin for ServerVariable
impl UnsafeUnpin for ServerVariable
impl UnwindSafe for ServerVariable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.