pub enum Application {
Show 69 variants
Json,
Xml,
Pdf,
Zip,
Gzip,
OctetStream,
FormUrlEncoded,
Postscript,
Rtf,
AtomXml,
RssXml,
SoapXml,
XhtmlXml,
XsltXml,
Yaml,
Wasm,
MsWord,
MsExcel,
MsPowerpoint,
MsProject,
MsWorks,
MsVisio,
MsOneNote,
VndOpenXmlWordDoc,
VndOpenXmlWordTemplate,
VndOpenXmlSpreadsheet,
VndOpenXmlSpreadsheetTemplate,
VndOpenXmlPresentation,
VndOpenXmlPresentationTemplate,
VndOasisText,
VndOasisSpreadsheet,
VndOasisPresentation,
VndOasisGraphics,
VndOasisFormula,
VndOasisDatabase,
X7zCompressed,
XRarCompressed,
XTar,
XBzip2,
XAceCompressed,
XStuffit,
VndDebian,
VndRar,
JavaArchive,
JavaSerializedObject,
JavaVm,
XShellScript,
XPerl,
XTcl,
XPython,
XRuby,
EpubZip,
VndAmazonEbook,
XMobipocketEbook,
VndMsHtmlhelp,
VndSqlite3,
XNetcdf,
XHdf,
VndMbox,
VndAdobeAir,
VndAdobeXdp,
VndAdobeXfdf,
VndAdobePhotoshop,
VndGoogleEarthKml,
VndGoogleEarthKmz,
VndAppleInstaller,
VndAndroidPackage,
VndAutocadDwg,
VndAutocadDxf,
}Available on crate feature
api only.Variants§
Json
Xml
Zip
Gzip
OctetStream
FormUrlEncoded
Postscript
Rtf
AtomXml
RssXml
SoapXml
XhtmlXml
XsltXml
Yaml
Wasm
MsWord
MsExcel
MsPowerpoint
MsProject
MsWorks
MsVisio
MsOneNote
VndOpenXmlWordDoc
VndOpenXmlWordTemplate
VndOpenXmlSpreadsheet
VndOpenXmlSpreadsheetTemplate
VndOpenXmlPresentation
VndOpenXmlPresentationTemplate
VndOasisText
VndOasisSpreadsheet
VndOasisPresentation
VndOasisGraphics
VndOasisFormula
VndOasisDatabase
X7zCompressed
XRarCompressed
XTar
XBzip2
XAceCompressed
XStuffit
VndDebian
VndRar
JavaArchive
JavaSerializedObject
JavaVm
XShellScript
XPerl
XTcl
XPython
XRuby
EpubZip
VndAmazonEbook
XMobipocketEbook
VndMsHtmlhelp
VndSqlite3
XNetcdf
XHdf
VndMbox
VndAdobeAir
VndAdobeXdp
VndAdobeXfdf
VndAdobePhotoshop
VndGoogleEarthKml
VndGoogleEarthKmz
VndAppleInstaller
VndAndroidPackage
VndAutocadDwg
VndAutocadDxf
Implementations§
Source§impl Application
impl Application
pub const fn as_static(&self) -> &'static str
pub const fn as_str(&self) -> &str
pub fn as_header_value(&self) -> HeaderValue
pub fn to_header_value(self) -> HeaderValue
pub fn from_header_value(value: &HeaderValue) -> Result<Self, Error>
pub const fn extensions(&self) -> &[&str]
pub const fn primary_extension(&self) -> Option<&str>
Trait Implementations§
Source§impl AsRef<str> for Application
impl AsRef<str> for Application
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Application
impl Debug for Application
Source§impl Display for Application
impl Display for Application
Source§impl From<Application> for &'static str
impl From<Application> for &'static str
Source§fn from(value: Application) -> Self
fn from(value: Application) -> Self
Converts to this type from the input type.
Source§impl From<Application> for HeaderValue
impl From<Application> for HeaderValue
Source§fn from(value: Application) -> Self
fn from(value: Application) -> Self
Converts to this type from the input type.
Source§impl From<Application> for String
impl From<Application> for String
Source§fn from(value: Application) -> Self
fn from(value: Application) -> Self
Converts to this type from the input type.
Source§impl FromStr for Application
impl FromStr for Application
Source§impl Hash for Application
impl Hash for Application
Source§impl PartialEq<&str> for Application
impl PartialEq<&str> for Application
Source§impl PartialEq<Application> for &str
impl PartialEq<Application> for &str
Source§impl PartialEq<Application> for MimeType
impl PartialEq<Application> for MimeType
Source§impl PartialEq<Application> for String
impl PartialEq<Application> for String
Source§impl PartialEq<MimeType> for Application
impl PartialEq<MimeType> for Application
Source§impl PartialEq<String> for Application
impl PartialEq<String> for Application
Source§impl PartialEq for Application
impl PartialEq for Application
Source§impl TryFrom<&HeaderValue> for Application
impl TryFrom<&HeaderValue> for Application
Source§impl TryFrom<&str> for Application
impl TryFrom<&str> for Application
Source§impl TryFrom<String> for Application
impl TryFrom<String> for Application
impl Copy for Application
impl Eq for Application
impl StructuralPartialEq for Application
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.