pub enum EncodingStyle {
Form,
SpaceDelimited,
PipeDelimited,
DeepObject,
}Expand description
The styles an encoded property may declare.
A Style narrowed the way HeaderStyle is. The specification gives an
encoded property the query parameter styles and no others, and an encoding
has no in field either, so this is a domain rather than a pairing.
Variants§
Form
Form-style expansion. Applied when none is stated.
SpaceDelimited
Space-separated array or object values.
PipeDelimited
Pipe-separated array or object values.
DeepObject
Nested objects rendered as prop[key]=value.
Trait Implementations§
Source§impl Clone for EncodingStyle
impl Clone for EncodingStyle
impl Copy for EncodingStyle
Source§impl Debug for EncodingStyle
impl Debug for EncodingStyle
Source§impl<'de> Deserialize<'de> for EncodingStyle
impl<'de> Deserialize<'de> for EncodingStyle
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 EncodingStyle
Source§impl From<EncodingStyle> for Style
impl From<EncodingStyle> for Style
Source§fn from(style: EncodingStyle) -> Self
fn from(style: EncodingStyle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncodingStyle
impl PartialEq for EncodingStyle
Source§impl Serialize for EncodingStyle
impl Serialize for EncodingStyle
impl StructuralPartialEq for EncodingStyle
Auto Trait Implementations§
impl Freeze for EncodingStyle
impl RefUnwindSafe for EncodingStyle
impl Send for EncodingStyle
impl Sync for EncodingStyle
impl Unpin for EncodingStyle
impl UnsafeUnpin for EncodingStyle
impl UnwindSafe for EncodingStyle
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.