pub struct LastModified;Expand description
See LAST_MODIFIED for more details.
Implementations§
Source§impl LastModified
impl LastModified
Sourcepub const fn from_static(value: &'static str) -> Header<LastModified>
pub const fn from_static(value: &'static str) -> Header<LastModified>
Creates a new instance of [Header<T>] from a static str
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Header<LastModified>, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Header<LastModified>, Error>
Construct a typed header from bytes (validated).
Sourcepub fn new(value: HeaderValue) -> Header<LastModified>
pub fn new(value: HeaderValue) -> Header<LastModified>
Wrap an owned raw HeaderValue (validated elsewhere).
Sourcepub fn from_ref(value: &HeaderValue) -> Header<LastModified>
pub fn from_ref(value: &HeaderValue) -> Header<LastModified>
Wrap a borrowed raw HeaderValue (validated elsewhere).
Trait Implementations§
Source§impl Clone for LastModified
impl Clone for LastModified
Source§fn clone(&self) -> LastModified
fn clone(&self) -> LastModified
Returns a duplicate of the value. Read more
1.0.0 · 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 LastModified
impl Debug for LastModified
Source§impl FromHeaders for LastModified
impl FromHeaders for LastModified
Source§const NAME: HeaderName = LAST_MODIFIED
const NAME: HeaderName = LAST_MODIFIED
Returns current
HeaderNameSource§fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
Reads a
HeaderValue from HeaderMapSource§impl Hash for LastModified
impl Hash for LastModified
Source§impl Ord for LastModified
impl Ord for LastModified
Source§fn cmp(&self, other: &LastModified) -> Ordering
fn cmp(&self, other: &LastModified) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LastModified
impl PartialEq for LastModified
Source§impl PartialOrd for LastModified
impl PartialOrd for LastModified
impl Copy for LastModified
impl Eq for LastModified
impl StructuralPartialEq for LastModified
Auto Trait Implementations§
impl Freeze for LastModified
impl RefUnwindSafe for LastModified
impl Send for LastModified
impl Sync for LastModified
impl Unpin for LastModified
impl UnsafeUnpin for LastModified
impl UnwindSafe for LastModified
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.