pub struct McmetaPack {
pub description: Vec<McmetaPackDescription>,
pub pack_format: u8,
pub supported_formats: Option<McmetaPackSupportedformats>,
}
Expand description
Holds the pack information.
Fields§
§description: Vec<McmetaPackDescription>
A raw JSON text that appears when hovering over the pack’s name in the list given by the /datapack list
command, or when viewing the pack in the Create World screen.
pack_format: u8
Determines the version(s) of Minecraft that this pack is compatible with.
See https://minecraft.wiki/w/Pack_format for a full list of pack format numbers.
supported_formats: Option<McmetaPackSupportedformats>
(optional) Describes a range for pack formats that this pack supports.
The range has to include the value of McmetaPack::pack_format
.
Trait Implementations§
Source§impl Clone for McmetaPack
impl Clone for McmetaPack
Source§fn clone(&self) -> McmetaPack
fn clone(&self) -> McmetaPack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for McmetaPack
impl Debug for McmetaPack
Source§impl<'de> Deserialize<'de> for McmetaPack
impl<'de> Deserialize<'de> for McmetaPack
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
Source§impl PartialEq for McmetaPack
impl PartialEq for McmetaPack
Source§impl Serialize for McmetaPack
impl Serialize for McmetaPack
impl Eq for McmetaPack
impl StructuralPartialEq for McmetaPack
Auto Trait Implementations§
impl Freeze for McmetaPack
impl RefUnwindSafe for McmetaPack
impl Send for McmetaPack
impl Sync for McmetaPack
impl Unpin for McmetaPack
impl UnwindSafe for McmetaPack
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