pub enum HeaderStyle {
Simple,
}Expand description
The one style a header may declare.
A Style narrowed to the value the specification leaves legal. A header
has no in field for a style to disagree with, so the restriction is not a
pairing between two fields but a domain: one variant, and a description
naming any other style does not parse.
Variants§
Simple
Comma-separated values, defined by RFC 6570.
Trait Implementations§
Source§impl Clone for HeaderStyle
impl Clone for HeaderStyle
impl Copy for HeaderStyle
Source§impl Debug for HeaderStyle
impl Debug for HeaderStyle
Source§impl<'de> Deserialize<'de> for HeaderStyle
impl<'de> Deserialize<'de> for HeaderStyle
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 HeaderStyle
Source§impl From<HeaderStyle> for Style
impl From<HeaderStyle> for Style
Source§fn from(_: HeaderStyle) -> Self
fn from(_: HeaderStyle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeaderStyle
impl PartialEq for HeaderStyle
Source§impl Serialize for HeaderStyle
impl Serialize for HeaderStyle
impl StructuralPartialEq for HeaderStyle
Auto Trait Implementations§
impl Freeze for HeaderStyle
impl RefUnwindSafe for HeaderStyle
impl Send for HeaderStyle
impl Sync for HeaderStyle
impl Unpin for HeaderStyle
impl UnsafeUnpin for HeaderStyle
impl UnwindSafe for HeaderStyle
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.