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§impl Debug for RetrievalMetadata
impl Debug for RetrievalMetadata
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