pub enum ErrorFormat {
Html,
ProblemJson,
Text,
}Expand description
Preferred error body format from an Accept header value.
Variants§
Trait Implementations§
Source§impl Clone for ErrorFormat
impl Clone for ErrorFormat
Source§fn clone(&self) -> ErrorFormat
fn clone(&self) -> ErrorFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorFormat
Source§impl Debug for ErrorFormat
impl Debug for ErrorFormat
impl Eq for ErrorFormat
Source§impl PartialEq for ErrorFormat
impl PartialEq for ErrorFormat
impl StructuralPartialEq for ErrorFormat
Auto Trait Implementations§
impl Freeze for ErrorFormat
impl RefUnwindSafe for ErrorFormat
impl Send for ErrorFormat
impl Sync for ErrorFormat
impl Unpin for ErrorFormat
impl UnsafeUnpin for ErrorFormat
impl UnwindSafe for ErrorFormat
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,
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.