struct Validators {
etag: String,
modified: Option<SystemTime>,
}Expand description
The validators of a file: its ETag and its modification time.
Fields§
§etag: String§modified: Option<SystemTime>Implementations§
Source§impl Validators
impl Validators
fn of(meta: &Metadata) -> Self
fn last_modified(&self) -> Option<String>
Sourcefn not_modified(&self, headers: &HeaderMap) -> bool
fn not_modified(&self, headers: &HeaderMap) -> bool
Whether the client’s copy is current: If-None-Match if given,
else If-Modified-Since, to the second.
Auto Trait Implementations§
impl Freeze for Validators
impl RefUnwindSafe for Validators
impl Send for Validators
impl Sync for Validators
impl Unpin for Validators
impl UnsafeUnpin for Validators
impl UnwindSafe for Validators
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