pub struct JsonContent;Expand description
Built-in JSON content type marker.
Trait Implementations§
Source§impl ContentTypeMarker for JsonContent
impl ContentTypeMarker for JsonContent
Source§const CONTENT_TYPE: &'static str = "application/json"
const CONTENT_TYPE: &'static str = "application/json"
The expected Content-Type header value.
Auto Trait Implementations§
impl Freeze for JsonContent
impl RefUnwindSafe for JsonContent
impl Send for JsonContent
impl Sync for JsonContent
impl Unpin for JsonContent
impl UnsafeUnpin for JsonContent
impl UnwindSafe for JsonContent
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