initlal project setup

This commit is contained in:
RafayAhmad7548 2026-08-30 16:38:53 +05:00
commit 505bfbbb5d
No known key found for this signature in database
6 changed files with 2146 additions and 0 deletions

31
src/models/vanilla.rs Normal file
View 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,
}