feat(install): install feature, installing mods into mods directory
This commit is contained in:
parent
809151b28c
commit
5359b39c9b
7 changed files with 176 additions and 4 deletions
26
src/models/install.rs
Normal file
26
src/models/install.rs
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue