refactor: comment out unsued field in api json model
This commit is contained in:
parent
ed93609899
commit
a19ccc9303
1 changed files with 7 additions and 7 deletions
|
|
@ -2,15 +2,15 @@ use serde::Deserialize;
|
|||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersions {
|
||||
pub latest: VanillaLatestVersion,
|
||||
// pub latest: VanillaLatestVersion,
|
||||
pub versions: Vec<VanillaVersion>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaLatestVersion {
|
||||
pub release: String,
|
||||
pub snapshot: String,
|
||||
}
|
||||
// #[derive(Deserialize)]
|
||||
// pub struct VanillaLatestVersion {
|
||||
// pub release: String,
|
||||
// pub snapshot: String,
|
||||
// }
|
||||
|
||||
#[derive(Deserialize, PartialEq)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
|
|
@ -36,7 +36,7 @@ pub struct VanillaVersionDetail {
|
|||
|
||||
#[derive(Deserialize)]
|
||||
pub struct VanillaVersionDownloads {
|
||||
pub client: VanillaVersionDownloadItem,
|
||||
// pub client: VanillaVersionDownloadItem,
|
||||
pub server: VanillaVersionDownloadItem,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue