pub struct MiddlewareEncodingConfiguration {
pub enabled_encodings_by_preference: Option<Vec<EncodingHeaderValue>>,
pub encodable_by_request: Option<EncodableHook>,
pub encodable_by_response: Option<EncodableHook>,
pub inner: EncodingConfiguration,
}
Expand description
Middleware encoding configuration.
Fields§
§enabled_encodings_by_preference: Option<Vec<EncodingHeaderValue>>
Enabled encodings in order of preference.
encodable_by_request: Option<EncodableHook>
Encodable by request (hook).
encodable_by_response: Option<EncodableHook>
Encodable by response (hook).
inner: EncodingConfiguration
Inner configuration.
Trait Implementations§
Source§impl Clone for MiddlewareEncodingConfiguration
impl Clone for MiddlewareEncodingConfiguration
Source§fn clone(&self) -> MiddlewareEncodingConfiguration
fn clone(&self) -> MiddlewareEncodingConfiguration
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 moreAuto Trait Implementations§
impl Freeze for MiddlewareEncodingConfiguration
impl !RefUnwindSafe for MiddlewareEncodingConfiguration
impl Send for MiddlewareEncodingConfiguration
impl Sync for MiddlewareEncodingConfiguration
impl Unpin for MiddlewareEncodingConfiguration
impl !UnwindSafe for MiddlewareEncodingConfiguration
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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