pub enum Charset {
Utf8,
Cp1252,
Unsupported(String),
}Expand description
What decoding a body needs, given its declared charset.
Variants§
Utf8
UTF-8 (or nothing declared): decode lossily as UTF-8.
Cp1252
windows-1252 / ISO-8859-1: decoded here, exactly.
Unsupported(String)
Something else. Decoded as UTF-8, which will mangle it; the label is carried on the result so the caller knows.
Trait Implementations§
impl Eq for Charset
impl StructuralPartialEq for Charset
Auto Trait Implementations§
impl Freeze for Charset
impl RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl UnsafeUnpin for Charset
impl UnwindSafe for Charset
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