pub struct JsonFormat;Expand description
JSON representation. Serializes via serde_json.
Trait Implementations§
Source§impl ContentFormat for JsonFormat
impl ContentFormat for JsonFormat
Source§const CONTENT_TYPE: &'static str = "application/json"
const CONTENT_TYPE: &'static str = "application/json"
The MIME type this format produces (e.g.,
"application/json").Source§const DEFAULT_QUALITY: f32 = 1.0
const DEFAULT_QUALITY: f32 = 1.0
Quality weight for tie-breaking when the client accepts multiple
formats equally (0.0 - 1.0). Higher values are preferred. Read more
Auto Trait Implementations§
impl Freeze for JsonFormat
impl RefUnwindSafe for JsonFormat
impl Send for JsonFormat
impl Sync for JsonFormat
impl Unpin for JsonFormat
impl UnsafeUnpin for JsonFormat
impl UnwindSafe for JsonFormat
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