pub struct Mcmeta {
pub pack: McmetaPack,
pub features: Option<McmetaFeatures>,
pub filter: Option<McmetaFilter>,
pub overlays: Option<McmetaOverlays>,
pub language: Option<HashMap<String, McmetaLanguage>>,
}
Expand description
The root object.
Fields§
§pack: McmetaPack
Holds the pack information.
features: Option<McmetaFeatures>
(optional) Section for selecting experimental features.
filter: Option<McmetaFilter>
(optional) Section for filtering out files from packs applied below this one.
overlays: Option<McmetaOverlays>
(optional) Section for specifying the overlays, which are sub-packs applied over the “normal” contents of a pack.
language: Option<HashMap<String, McmetaLanguage>>
(optional) Only present in resource packs — Contains additional languages to add to the language menu.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mcmeta
impl<'de> Deserialize<'de> for Mcmeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Mcmeta
impl StructuralPartialEq for Mcmeta
Auto Trait Implementations§
impl Freeze for Mcmeta
impl RefUnwindSafe for Mcmeta
impl Send for Mcmeta
impl Sync for Mcmeta
impl Unpin for Mcmeta
impl UnwindSafe for Mcmeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more