forked from akanyan/STARTLINER
26 lines
599 B
Rust
26 lines
599 B
Rust
use std::collections::BTreeSet;
|
|
use serde::Deserialize;
|
|
use crate::pkg::PkgKeyVersion;
|
|
|
|
// /c/{game}/api/v1/package
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct V1Package {
|
|
pub owner: String,
|
|
pub package_url: String,
|
|
pub is_deprecated: bool,
|
|
pub has_nsfw_content: bool,
|
|
pub categories: Vec<String>,
|
|
pub versions: Vec<V1Version>,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct V1Version {
|
|
pub name: String,
|
|
pub description: String,
|
|
pub version_number: String,
|
|
pub icon: String,
|
|
pub dependencies: BTreeSet<PkgKeyVersion>,
|
|
pub download_url: String,
|
|
pub file_size: i64,
|
|
} |