Remove some unused fields from SimpleJson (#612)

This commit is contained in:
Charlie Marsh 2023-12-11 23:01:37 -05:00 committed by GitHub
parent 1181288078
commit edcb71b1be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,9 +8,6 @@ use crate::lenient_requirement::LenientVersionSpecifiers;
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SimpleJson { pub struct SimpleJson {
pub files: Vec<File>, pub files: Vec<File>,
pub meta: Meta,
pub name: String,
pub versions: Vec<String>,
} }
/// A single (remote) file belonging to a package, generally either a wheel or a source dist. /// A single (remote) file belonging to a package, generally either a wheel or a source dist.
@ -88,11 +85,3 @@ impl Yanked {
pub struct Hashes { pub struct Hashes {
pub sha256: String, pub sha256: String,
} }
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
pub struct Meta {
#[serde(rename = "_last-serial")]
pub last_serial: i64,
pub api_version: String,
}