pub struct Options {
pub html: Options,
pub transport: Option<&'static Encoding>,
pub fallback: &'static Encoding,
}Expand description
How to turn bytes into a document.
Fields§
§html: OptionsThe parse itself.
transport: Option<&'static Encoding>The encoding the transport layer gave, such as the charset in an
HTTP Content-Type: look it up with Encoding::for_label. A byte
order mark still wins over it, as in browsers.
fallback: &'static EncodingThe encoding when nothing in or around the page names one and its
bytes aren’t valid UTF-8: windows-1252 by default, as in browsers set to English.
locale_default gives the one a browser in another language
would use.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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