pub struct CacheMeta {
pub fetched_at: DateTime<Utc>,
pub digest: String,
pub etag: Option<String>,
pub expires_at: DateTime<Utc>,
pub key_id: Option<String>,
pub registry_url: Option<String>,
}Expand description
Cache metadata stored alongside pack content.
Fields§
§fetched_at: DateTime<Utc>When the pack was fetched.
digest: StringContent digest (sha256:…).
etag: Option<String>ETag for conditional requests.
expires_at: DateTime<Utc>When the cache entry expires.
key_id: Option<String>Key ID used to sign (if signed).
registry_url: Option<String>Registry URL this was fetched from.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CacheMeta
impl<'de> Deserialize<'de> for CacheMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CacheMeta
impl RefUnwindSafe for CacheMeta
impl Send for CacheMeta
impl Sync for CacheMeta
impl Unpin for CacheMeta
impl UnsafeUnpin for CacheMeta
impl UnwindSafe for CacheMeta
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