pub struct VaryBuilder { /* private fields */ }Expand description
Helper to build Vary header values for content negotiation.
Implementations§
Source§impl VaryBuilder
impl VaryBuilder
Sourcepub fn accept_encoding(self) -> Self
pub fn accept_encoding(self) -> Self
Add Accept-Encoding to the Vary header.
Sourcepub fn accept_language(self) -> Self
pub fn accept_language(self) -> Self
Add Accept-Language to the Vary header.
Trait Implementations§
Source§impl Clone for VaryBuilder
impl Clone for VaryBuilder
Source§fn clone(&self) -> VaryBuilder
fn clone(&self) -> VaryBuilder
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 VaryBuilder
impl Debug for VaryBuilder
Source§impl Default for VaryBuilder
impl Default for VaryBuilder
Source§fn default() -> VaryBuilder
fn default() -> VaryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VaryBuilder
impl RefUnwindSafe for VaryBuilder
impl Send for VaryBuilder
impl Sync for VaryBuilder
impl Unpin for VaryBuilder
impl UnwindSafe for VaryBuilder
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).