pub(crate) struct DownloadCache {
pub(crate) Entries: HashMap<String, String>,
}Expand description
Represents the structure of the Cache.json file.
It uses a HashMap to map a unique key (representing a specific
sidecar/version/platform) to the full version string that was last
downloaded.
Fields§
§Entries: HashMap<String, String>The core data structure for the cache. Key: A unique string like “x86_64-pc-windows-msvc/NODE/24”. Value: The full version string, like “v24.0.0”.
Implementations§
Trait Implementations§
Source§impl Debug for DownloadCache
impl Debug for DownloadCache
Source§impl Default for DownloadCache
impl Default for DownloadCache
Source§fn default() -> DownloadCache
fn default() -> DownloadCache
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DownloadCache
impl<'de> Deserialize<'de> for DownloadCache
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 DownloadCache
impl RefUnwindSafe for DownloadCache
impl Send for DownloadCache
impl Sync for DownloadCache
impl Unpin for DownloadCache
impl UnwindSafe for DownloadCache
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