use std::collections::BTreeMap; use chrono::{DateTime, Utc}; use serde::Deserialize; use super::version::{*, manifest::*}; #[derive(Deserialize, Debug)] struct RemoteVersionIndexEntry { last_update: DateTime } #[derive(Deserialize, Debug)] struct RemoteVersionIndex { versions: BTreeMap } struct RemoteVersionList { manifest: VersionManifest, index: RemoteVersionIndex } struct LocalVersionList { versions: BTreeMap } struct VersionList { offline: bool, remote: Option, local: LocalVersionList } impl VersionList { }