pub enum ParameterStyle {
Matrix,
Label,
Form,
Simple,
SpaceDelimited,
PipeDelimited,
DeepObject,
}
Expand description
ParameterStyle
In order to support common ways of serializing simple parameters, a set of style values are defined.
Variants§
Matrix
Path-style parameters defined by RFC6570
Label
Label style parameters defined by RFC6570
Form
Form style parameters defined by RFC6570. This option replaces collectionFormat with a csv (when explode is false) or multi (when explode is true) value from OpenAPI 2.0.
Simple
Simple style parameters defined by RFC6570. This option replaces collectionFormat with a csv value from OpenAPI 2.0.
SpaceDelimited
Space separated array values. This option replaces collectionFormat equal to ssv from OpenAPI 2.0.
PipeDelimited
Pipe separated array values. This option replaces collectionFormat equal to pipes from OpenAPI 2.0.
DeepObject
Provides a simple way of rendering nested objects using form parameters.
Trait Implementations§
Source§impl Clone for ParameterStyle
impl Clone for ParameterStyle
Source§fn clone(&self) -> ParameterStyle
fn clone(&self) -> ParameterStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ParameterStyle
impl Debug for ParameterStyle
Source§impl Default for ParameterStyle
impl Default for ParameterStyle
Source§impl<'de> Deserialize<'de> for ParameterStyle
impl<'de> Deserialize<'de> for ParameterStyle
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>,
Source§impl Ord for ParameterStyle
impl Ord for ParameterStyle
Source§fn cmp(&self, other: &ParameterStyle) -> Ordering
fn cmp(&self, other: &ParameterStyle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ParameterStyle
impl PartialEq for ParameterStyle
Source§impl PartialOrd for ParameterStyle
impl PartialOrd for ParameterStyle
Source§impl Serialize for ParameterStyle
impl Serialize for ParameterStyle
impl Copy for ParameterStyle
impl Eq for ParameterStyle
impl StructuralPartialEq for ParameterStyle
Auto Trait Implementations§
impl Freeze for ParameterStyle
impl RefUnwindSafe for ParameterStyle
impl Send for ParameterStyle
impl Sync for ParameterStyle
impl Unpin for ParameterStyle
impl UnwindSafe for ParameterStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.