From df0524cea30f1aab624b2b65a6855e28d238a051 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 6 Aug 2022 02:02:55 +0200 Subject: [PATCH] Move `BundleMetadata` to the `schema::bundle` module --- src/schema/{anybundle => bundle}/metadata.rs | 6 ++++-- src/schema/{anybundle => bundle}/mod.rs | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/schema/{anybundle => bundle}/metadata.rs (86%) rename src/schema/{anybundle => bundle}/mod.rs (58%) diff --git a/src/schema/anybundle/metadata.rs b/src/schema/bundle/metadata.rs similarity index 86% rename from src/schema/anybundle/metadata.rs rename to src/schema/bundle/metadata.rs index 3a24582..a35fd40 100644 --- a/src/schema/anybundle/metadata.rs +++ b/src/schema/bundle/metadata.rs @@ -1,6 +1,8 @@ -/// The contents of the `anybundle.json` file of a bundle. +//! 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 anybundle. +/// 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. diff --git a/src/schema/anybundle/mod.rs b/src/schema/bundle/mod.rs similarity index 58% rename from src/schema/anybundle/mod.rs rename to src/schema/bundle/mod.rs index 8fe44fb..37b96bc 100644 --- a/src/schema/anybundle/mod.rs +++ b/src/schema/bundle/mod.rs @@ -1,5 +1,3 @@ //! This module defines the types used in all Data Dragon bundles. -mod metadata; - -pub use metadata::BundleMetadata; +pub mod metadata;