feat(install): install feature, installing mods into mods directory

This commit is contained in:
RafayAhmad7548 2026-09-03 13:07:03 +05:00
parent 809151b28c
commit 5359b39c9b
Signed by: RafayAhmad
SSH key fingerprint: SHA256:WURX8viobA1uawb4dWM3LqYrY+XPcZcXhAXAlrYdhtE
7 changed files with 176 additions and 4 deletions

26
src/models/install.rs Normal file
View file

@ -0,0 +1,26 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize)]
pub struct InstallQueryParams {
pub loaders: String,
pub game_versions: String,
}
#[derive(Deserialize)]
pub struct InstallResult {
pub version_number: String,
pub files: Vec<InstallFile>,
}
#[derive(Deserialize)]
pub struct InstallFile {
pub hashes: InstallHashes,
pub url: String,
pub filename: String,
pub size: u64,
}
#[derive(Deserialize)]
pub struct InstallHashes {
pub sha512: String,
}