summaryrefslogtreecommitdiffstats
path: root/src/launcher.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2024-12-17 22:31:08 -0600
committerLibravatar bigfoot547 <[email protected]>2024-12-17 22:31:08 -0600
commit8084d12fa414b8a38fe40e7d60b14c905e62e19c (patch)
tree43e133d8e36377ccc6d807115816cce669561995 /src/launcher.rs
parentremove getter business (diff)
more stuff
Diffstat (limited to 'src/launcher.rs')
-rw-r--r--src/launcher.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/launcher.rs b/src/launcher.rs
new file mode 100644
index 0000000..695406a
--- /dev/null
+++ b/src/launcher.rs
@@ -0,0 +1,35 @@
+use std::collections::BTreeMap;
+
+use chrono::{DateTime, Utc};
+use serde::Deserialize;
+
+use super::version::{*, manifest::*};
+
+#[derive(Deserialize, Debug)]
+struct RemoteVersionIndexEntry {
+ last_update: DateTime<Utc>
+}
+
+#[derive(Deserialize, Debug)]
+struct RemoteVersionIndex {
+ versions: BTreeMap<String, RemoteVersionIndexEntry>
+}
+
+struct RemoteVersionList {
+ manifest: VersionManifest,
+ index: RemoteVersionIndex
+}
+
+struct LocalVersionList {
+ versions: BTreeMap<String, CompleteVersion>
+}
+
+struct VersionList {
+ offline: bool,
+ remote: Option<RemoteVersionList>,
+ local: LocalVersionList
+}
+
+impl VersionList {
+
+}