pub struct TextFormat;Expand description
Plain text representation. Uses Display.
Trait Implementations§
Source§impl ContentFormat for TextFormat
impl ContentFormat for TextFormat
Source§const CONTENT_TYPE: &'static str = "text/plain; charset=utf-8"
const CONTENT_TYPE: &'static str = "text/plain; charset=utf-8"
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 TextFormat
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnsafeUnpin for TextFormat
impl UnwindSafe for TextFormat
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