feat: vanilla server downloading + lots of ux improvements
This commit is contained in:
parent
505bfbbb5d
commit
0a12b87a2a
6 changed files with 241 additions and 22 deletions
|
|
@ -2,7 +2,7 @@ use serde::Deserialize;
|
|||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersions {
|
||||
pub latest: VanillaLatestVersion,
|
||||
pub latest: VanillaLatestVersion,
|
||||
pub versions: Vec<VanillaVersion>,
|
||||
}
|
||||
|
||||
|
|
@ -29,3 +29,20 @@ pub struct VanillaVersion {
|
|||
pub url: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersionDetail {
|
||||
pub downloads: VanillaVersionDownloads,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersionDownloads {
|
||||
pub client: VanillaVersionDownloadItem,
|
||||
pub server: VanillaVersionDownloadItem,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersionDownloadItem {
|
||||
pub sha1: String,
|
||||
pub size: u64,
|
||||
pub url: String,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue