pub struct ETagConfig {
pub strategy: ETagStrategy,
pub min_size: usize,
pub max_size: usize,
pub content_types: Vec<String>,
}Expand description
Configuration for ETag middleware
Fields§
§strategy: ETagStrategyStrategy for generating ETags
min_size: usizeMinimum response size to generate ETags for
max_size: usizeMaximum response size to generate ETags for
content_types: Vec<String>Content types to generate ETags for
Trait Implementations§
Source§impl Clone for ETagConfig
impl Clone for ETagConfig
Source§fn clone(&self) -> ETagConfig
fn clone(&self) -> ETagConfig
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 ETagConfig
impl Debug for ETagConfig
Auto Trait Implementations§
impl Freeze for ETagConfig
impl RefUnwindSafe for ETagConfig
impl Send for ETagConfig
impl Sync for ETagConfig
impl Unpin for ETagConfig
impl UnwindSafe for ETagConfig
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