pub struct ConditionalGet {
pub if_none_match: Option<String>,
pub if_modified_since: Option<String>,
}Expand description
Conditional GET validators for revalidating a stale cache entry.
Both fields are forwarded as request headers when set:
If-None-Match for ETag-based validation and If-Modified-Since for
time-based validation. Either, both, or neither may be supplied.
Fields§
§if_none_match: Option<String>§if_modified_since: Option<String>Trait Implementations§
Source§impl Clone for ConditionalGet
impl Clone for ConditionalGet
Source§fn clone(&self) -> ConditionalGet
fn clone(&self) -> ConditionalGet
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 moreSource§impl Debug for ConditionalGet
impl Debug for ConditionalGet
Source§impl Default for ConditionalGet
impl Default for ConditionalGet
Source§fn default() -> ConditionalGet
fn default() -> ConditionalGet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConditionalGet
impl RefUnwindSafe for ConditionalGet
impl Send for ConditionalGet
impl Sync for ConditionalGet
impl Unpin for ConditionalGet
impl UnsafeUnpin for ConditionalGet
impl UnwindSafe for ConditionalGet
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more