pub struct HtmlFormat;Expand description
HTML representation. Uses Display (intended for types that produce HTML).
Trait Implementations§
Source§impl ContentFormat for HtmlFormat
impl ContentFormat for HtmlFormat
Source§const CONTENT_TYPE: &'static str = "text/html; charset=utf-8"
const CONTENT_TYPE: &'static str = "text/html; 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 HtmlFormat
impl RefUnwindSafe for HtmlFormat
impl Send for HtmlFormat
impl Sync for HtmlFormat
impl Unpin for HtmlFormat
impl UnsafeUnpin for HtmlFormat
impl UnwindSafe for HtmlFormat
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