pub struct EtagPolicy {
pub etag: bool,
pub preconditions: Option<bool>,
pub require_precondition: bool,
}Expand description
How a response should treat entity tags and conditional requests.
Fields§
§etag: boolWhether to emit an ETag.
preconditions: Option<bool>Whether to evaluate conditional headers; None means safe methods only.
require_precondition: boolWhether an If-Match is required on unsafe methods.
Trait Implementations§
Source§impl Clone for EtagPolicy
impl Clone for EtagPolicy
Source§fn clone(&self) -> EtagPolicy
fn clone(&self) -> EtagPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EtagPolicy
Source§impl Debug for EtagPolicy
impl Debug for EtagPolicy
Source§impl Default for EtagPolicy
impl Default for EtagPolicy
impl Eq for EtagPolicy
Source§impl PartialEq for EtagPolicy
impl PartialEq for EtagPolicy
impl StructuralPartialEq for EtagPolicy
Auto Trait Implementations§
impl Freeze for EtagPolicy
impl RefUnwindSafe for EtagPolicy
impl Send for EtagPolicy
impl Sync for EtagPolicy
impl Unpin for EtagPolicy
impl UnsafeUnpin for EtagPolicy
impl UnwindSafe for EtagPolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.