initlal project setup
This commit is contained in:
commit
505bfbbb5d
6 changed files with 2146 additions and 0 deletions
31
src/models/vanilla.rs
Normal file
31
src/models/vanilla.rs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
use serde::Deserialize;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersions {
|
||||
pub latest: VanillaLatestVersion,
|
||||
pub versions: Vec<VanillaVersion>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaLatestVersion {
|
||||
pub release: String,
|
||||
pub snapshot: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, PartialEq)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum VanillaVersionType {
|
||||
Snapshot,
|
||||
Release,
|
||||
OldBeta,
|
||||
OldAlpha,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersion {
|
||||
pub id: String,
|
||||
#[serde(rename = "type")]
|
||||
pub version_type: VanillaVersionType,
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue