pub struct CacheEntry {
pub content_hash: String,
pub provider: String,
pub reference: String,
pub expires_at: Option<SystemTime>,
}Expand description
A cache entry for an uploaded file.
Fields§
§content_hash: StringSHA-256 hash of file content (for detecting changes).
provider: StringProvider name (e.g., “gemini”, “openai”).
reference: StringProvider-specific reference (file URI or file_id).
expires_at: Option<SystemTime>When this reference expires (None if it never expires).
Implementations§
Source§impl CacheEntry
impl CacheEntry
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§impl Debug for CacheEntry
impl Debug for CacheEntry
Source§impl<'de> Deserialize<'de> for CacheEntry
impl<'de> Deserialize<'de> for CacheEntry
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 Forget for CacheEntry
impl Freeze for CacheEntry
impl Move for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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