pub enum ContentEncoding {
Auto,
Br,
Deflate,
Gzip,
Identity,
}
Expand description
Represents supported types of content encodings
Variants§
Auto
Automatically select encoding based on encoding negotiation
Br
A format using the Brotli algorithm
Deflate
A format using the zlib structure with deflate algorithm
Gzip
Gzip algorithm
Identity
Indicates the identity function (i.e. no compression, nor modification)
Implementations§
Trait Implementations§
source§impl Clone for ContentEncoding
impl Clone for ContentEncoding
source§fn clone(&self) -> ContentEncoding
fn clone(&self) -> ContentEncoding
Returns a copy 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 ContentEncoding
impl Debug for ContentEncoding
source§impl<'a> From<&'a str> for ContentEncoding
impl<'a> From<&'a str> for ContentEncoding
source§fn from(s: &'a str) -> ContentEncoding
fn from(s: &'a str) -> ContentEncoding
Converts to this type from the input type.
source§impl PartialEq<ContentEncoding> for ContentEncoding
impl PartialEq<ContentEncoding> for ContentEncoding
source§fn eq(&self, other: &ContentEncoding) -> bool
fn eq(&self, other: &ContentEncoding) -> bool
impl Copy for ContentEncoding
impl StructuralPartialEq for ContentEncoding
Auto Trait Implementations§
impl RefUnwindSafe for ContentEncoding
impl Send for ContentEncoding
impl Sync for ContentEncoding
impl Unpin for ContentEncoding
impl UnwindSafe for ContentEncoding
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more