pub struct AcceptEncodingHeader {
pub items: Vec<AcceptEncodingItem>,
}Expand description
Fields§
§items: Vec<AcceptEncodingItem>Encodings sorted by quality (highest first).
Implementations§
Trait Implementations§
Source§impl Clone for AcceptEncodingHeader
impl Clone for AcceptEncodingHeader
Source§fn clone(&self) -> AcceptEncodingHeader
fn clone(&self) -> AcceptEncodingHeader
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 AcceptEncodingHeader
impl Debug for AcceptEncodingHeader
Source§impl Default for AcceptEncodingHeader
impl Default for AcceptEncodingHeader
Source§fn default() -> AcceptEncodingHeader
fn default() -> AcceptEncodingHeader
Returns the “default value” for a type. Read more
Source§impl FromRequest for AcceptEncodingHeader
impl FromRequest for AcceptEncodingHeader
Source§type Error = Infallible
type Error = Infallible
Error type when extraction fails.
Source§async fn from_request(
_ctx: &RequestContext,
req: &mut Request,
) -> Result<Self, Self::Error>
async fn from_request( _ctx: &RequestContext, req: &mut Request, ) -> Result<Self, Self::Error>
Extract a value from the request. Read more
Auto Trait Implementations§
impl Freeze for AcceptEncodingHeader
impl RefUnwindSafe for AcceptEncodingHeader
impl Send for AcceptEncodingHeader
impl Sync for AcceptEncodingHeader
impl Unpin for AcceptEncodingHeader
impl UnwindSafe for AcceptEncodingHeader
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).