pub struct RetrievalMetadata {
pub etag: Option<String>,
pub cache_control: Option<String>,
pub last_modified: Option<DateTime<Utc>>,
}Expand description
Cache and integrity headers returned alongside a retrieved body.
etag is the body’s content_hash (immutable; ideal cache key).
cache_control and last_modified are reported verbatim from the
upstream registry.
Fields§
§etag: Option<String>Strong validator for conditional retrieval (If-None-Match).
cache_control: Option<String>Raw Cache-Control header value, if any.
last_modified: Option<DateTime<Utc>>Parsed Last-Modified header, if any.
Trait Implementations§
Source§impl Clone for RetrievalMetadata
impl Clone for RetrievalMetadata
Source§fn clone(&self) -> RetrievalMetadata
fn clone(&self) -> RetrievalMetadata
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 RetrievalMetadata
impl Debug for RetrievalMetadata
Source§impl Default for RetrievalMetadata
impl Default for RetrievalMetadata
Source§fn default() -> RetrievalMetadata
fn default() -> RetrievalMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RetrievalMetadata
impl RefUnwindSafe for RetrievalMetadata
impl Send for RetrievalMetadata
impl Sync for RetrievalMetadata
impl Unpin for RetrievalMetadata
impl UnsafeUnpin for RetrievalMetadata
impl UnwindSafe for RetrievalMetadata
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