pub struct StructureMeta {
pub file: String,
pub id: String,
pub size: [i32; 3],
pub data_version: i32,
pub generator: Option<String>,
}Expand description
The structure block: which file, how big, for which MC version.
Fields§
§file: StringThe .nbt filename, relative to this metadata file.
id: StringThe datapack structure id (a path segment).
size: [i32; 3]Structure extent [x, y, z].
data_version: i32The MC data version the structure targets (ADR-0009).
generator: Option<String>Provenance breadcrumb: what wrote the .nbt.
Trait Implementations§
Source§impl Clone for StructureMeta
impl Clone for StructureMeta
Source§fn clone(&self) -> StructureMeta
fn clone(&self) -> StructureMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructureMeta
impl Debug for StructureMeta
Source§impl<'de> Deserialize<'de> for StructureMeta
impl<'de> Deserialize<'de> for StructureMeta
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 StructureMeta
impl PartialEq for StructureMeta
Source§impl Serialize for StructureMeta
impl Serialize for StructureMeta
impl StructuralPartialEq for StructureMeta
Auto Trait Implementations§
impl Freeze for StructureMeta
impl RefUnwindSafe for StructureMeta
impl Send for StructureMeta
impl Sync for StructureMeta
impl Unpin for StructureMeta
impl UnsafeUnpin for StructureMeta
impl UnwindSafe for StructureMeta
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