pub struct EtagConfig { /* private fields */ }Expand description
Configuration for EtagPlugin.
Implementations§
Source§impl EtagConfig
Fluent builder helpers for EtagConfig.
impl EtagConfig
Fluent builder helpers for EtagConfig.
Sourcepub fn with_strength(self, strength: EtagStrength) -> Self
pub fn with_strength(self, strength: EtagStrength) -> Self
Sourcepub fn with_min_body_bytes(self, min_bytes: usize) -> Self
pub fn with_min_body_bytes(self, min_bytes: usize) -> Self
Sourcepub fn with_exempt_prefixes<I, S>(self, prefixes: I) -> Self
pub fn with_exempt_prefixes<I, S>(self, prefixes: I) -> Self
Source§impl EtagConfig
impl EtagConfig
pub fn get_strength(&self) -> EtagStrength
pub fn get_mut_strength(&mut self) -> &mut EtagStrength
pub fn set_strength(&mut self, val: EtagStrength) -> &mut Self
pub fn get_min_body_bytes(&self) -> usize
pub fn get_mut_min_body_bytes(&mut self) -> &mut usize
pub fn set_min_body_bytes(&mut self, val: usize) -> &mut Self
pub fn get_exempt_prefixes(&self) -> &Vec<String>
pub fn get_mut_exempt_prefixes(&mut self) -> &mut Vec<String>
pub fn set_exempt_prefixes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_enforce_if_match(&self) -> bool
pub fn get_mut_enforce_if_match(&mut self) -> &mut bool
pub fn set_enforce_if_match(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for EtagConfig
impl Clone for EtagConfig
Source§impl Debug for EtagConfig
impl Debug for EtagConfig
Source§impl Default for EtagConfig
Default construction for EtagConfig.
impl Default for EtagConfig
Default construction for EtagConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs an EtagConfig generating strong ETags with If-Match validation enabled.
§Returns
Self- Default configuration.
impl Eq for EtagConfig
Source§impl PartialEq for EtagConfig
impl PartialEq for EtagConfig
impl StructuralPartialEq for EtagConfig
Auto Trait Implementations§
impl Forget for EtagConfig
impl Freeze for EtagConfig
impl Move for EtagConfig
impl RefUnwindSafe for EtagConfig
impl Send for EtagConfigwhere
RawVecInner: Send,
impl Sync for EtagConfigwhere
RawVecInner: Sync,
impl Unpin for EtagConfig
impl UnsafeUnpin for EtagConfig
impl UnwindSafe for EtagConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.