1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Nevermind, bundle metadata is definitely out of scope (and useless for LoR)

This commit is contained in:
Steffo 2022-08-06 02:04:28 +02:00
parent df0524cea3
commit 26c02d9c2e
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 0 additions and 37 deletions

View file

@ -1,34 +0,0 @@
//! This module defines [BundleMetadata].
/// The contents of the `metadata.json` file of a bundle.
///
/// Both Core Bundles and Set Bundles are bundles, and both have `metadata.json` files.
#[derive(Clone, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
pub struct BundleMetadata {
/// The locales included in the bundle.
///
/// I've never seen more that a single locale here, but the specification allows that.
locales: Vec<String>,
/// ???
#[serde(default = "none")]
client_hash: Option<String>,
/// ???
#[serde(default = "none")]
gameplay_data_hash: Option<String>,
/// ???
#[serde(default = "none")]
timestamp: Option<String>,
/// ???
#[serde(default = "none")]
patchline_ref: Option<String>,
}
/// Generate a [Option::None] to use as default in [serde].
fn none<T>() -> Option<T> {
Option::<T>::None
}

View file

@ -1,3 +0,0 @@
//! This module defines the types used in all Data Dragon bundles.
pub mod metadata;