#[repr(u8)]pub enum KnownEncoding {
Show 21 variants
Empty = 0,
AppOctetStream = 1,
AppCustom = 2,
TextPlain = 3,
AppProperties = 4,
AppJson = 5,
AppSql = 6,
AppInteger = 7,
AppFloat = 8,
AppXml = 9,
AppXhtmlXml = 10,
AppXWwwFormUrlencoded = 11,
TextJson = 12,
TextHtml = 13,
TextXml = 14,
TextCss = 15,
TextCsv = 16,
TextJavascript = 17,
ImageJpeg = 18,
ImagePng = 19,
ImageGif = 20,
}
Variants§
Empty = 0
AppOctetStream = 1
AppCustom = 2
TextPlain = 3
AppProperties = 4
AppJson = 5
AppSql = 6
AppInteger = 7
AppFloat = 8
AppXml = 9
AppXhtmlXml = 10
AppXWwwFormUrlencoded = 11
TextJson = 12
TextHtml = 13
TextXml = 14
TextCss = 15
TextCsv = 16
TextJavascript = 17
ImageJpeg = 18
ImagePng = 19
ImageGif = 20
Trait Implementations§
Source§impl AsRef<str> for KnownEncoding
impl AsRef<str> for KnownEncoding
Source§impl Clone for KnownEncoding
impl Clone for KnownEncoding
Source§fn clone(&self) -> KnownEncoding
fn clone(&self) -> KnownEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KnownEncoding
impl Debug for KnownEncoding
Source§impl From<&KnownEncoding> for Encoding
impl From<&KnownEncoding> for Encoding
Source§fn from(e: &KnownEncoding) -> Encoding
fn from(e: &KnownEncoding) -> Encoding
Converts to this type from the input type.
Source§impl From<KnownEncoding> for &str
impl From<KnownEncoding> for &str
Source§fn from(val: KnownEncoding) -> Self
fn from(val: KnownEncoding) -> Self
Converts to this type from the input type.
Source§impl From<KnownEncoding> for Encoding
impl From<KnownEncoding> for Encoding
Source§fn from(e: KnownEncoding) -> Encoding
fn from(e: KnownEncoding) -> Encoding
Converts to this type from the input type.
Source§impl From<KnownEncoding> for u8
impl From<KnownEncoding> for u8
Source§fn from(val: KnownEncoding) -> Self
fn from(val: KnownEncoding) -> Self
Converts to this type from the input type.
Source§impl From<KnownEncoding> for usize
impl From<KnownEncoding> for usize
Source§fn from(val: KnownEncoding) -> Self
fn from(val: KnownEncoding) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KnownEncoding
impl PartialEq for KnownEncoding
Source§impl TryFrom<u64> for KnownEncoding
impl TryFrom<u64> for KnownEncoding
Source§impl TryFrom<u8> for KnownEncoding
impl TryFrom<u8> for KnownEncoding
impl Copy for KnownEncoding
impl Eq for KnownEncoding
impl StructuralPartialEq for KnownEncoding
Auto Trait Implementations§
impl Freeze for KnownEncoding
impl RefUnwindSafe for KnownEncoding
impl Send for KnownEncoding
impl Sync for KnownEncoding
impl Unpin for KnownEncoding
impl UnwindSafe for KnownEncoding
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