pub struct HttpExceptionMember {
pub field: String,
pub wire_name: String,
pub ty: TypeSpec,
pub is_multi: bool,
pub optional: bool,
}Expand description
A @header/@cookie annotated member of an exception.
Fields§
§field: String§wire_name: String§ty: TypeSpec§is_multi: boolsequence<...> members repeat the header (append) instead of replacing it.
optional: bool@optional members may be absent: the field is Option<_> and the
header is only written when a value exists.
Trait Implementations§
Source§impl Clone for HttpExceptionMember
impl Clone for HttpExceptionMember
Source§impl Debug for HttpExceptionMember
impl Debug for HttpExceptionMember
Source§impl<'de> Deserialize<'de> for HttpExceptionMember
impl<'de> Deserialize<'de> for HttpExceptionMember
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
Auto Trait Implementations§
impl Freeze for HttpExceptionMember
impl RefUnwindSafe for HttpExceptionMember
impl Send for HttpExceptionMember
impl Sync for HttpExceptionMember
impl Unpin for HttpExceptionMember
impl UnsafeUnpin for HttpExceptionMember
impl UnwindSafe for HttpExceptionMember
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