pub struct Response<'a> {
pub etag: Option<&'a str>,
pub last_modified: Option<&'a str>,
}Expand description
The response-side validators that a fresh request must match.
Build one with Response::new and the chainable setters, or construct it directly.
A field left None — or set to an empty string — is treated as absent.
Fields§
§etag: Option<&'a str>The response ETag header value.
last_modified: Option<&'a str>The response Last-Modified header value (an HTTP date).
Implementations§
Trait Implementations§
impl<'a> Copy for Response<'a>
impl<'a> Eq for Response<'a>
Source§impl<'a> PartialEq for Response<'a>
impl<'a> PartialEq for Response<'a>
impl<'a> StructuralPartialEq for Response<'a>
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnsafeUnpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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