pub(crate) struct CompressionAlgorithms {
gzip: bool,
brotli: bool,
deflate: bool,
zstd: bool,
}Expand description
压缩算法配置。
Fields§
§gzip: bool§brotli: bool§deflate: bool§zstd: boolImplementations§
Source§impl CompressionAlgorithms
impl CompressionAlgorithms
fn all_enabled() -> Self
fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CompressionAlgorithms
impl Clone for CompressionAlgorithms
Source§fn clone(&self) -> CompressionAlgorithms
fn clone(&self) -> CompressionAlgorithms
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 CompressionAlgorithms
impl Debug for CompressionAlgorithms
Source§impl PartialEq for CompressionAlgorithms
impl PartialEq for CompressionAlgorithms
impl Copy for CompressionAlgorithms
impl Eq for CompressionAlgorithms
impl StructuralPartialEq for CompressionAlgorithms
Auto Trait Implementations§
impl Freeze for CompressionAlgorithms
impl RefUnwindSafe for CompressionAlgorithms
impl Send for CompressionAlgorithms
impl Sync for CompressionAlgorithms
impl Unpin for CompressionAlgorithms
impl UnsafeUnpin for CompressionAlgorithms
impl UnwindSafe for CompressionAlgorithms
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.