Struct BlockEntityTypeDecl
#[non_exhaustive]pub struct BlockEntityTypeDecl {
pub id: String,
pub blocks: Vec<String>,
}Expand description
A declared block entity type and the block identifiers it supports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringNamespaced type identifier validated during registration.
blocks: Vec<String>Supported block identifiers, in declaration order.
Trait Implementations§
§impl Clone for BlockEntityTypeDecl
impl Clone for BlockEntityTypeDecl
§fn clone(&self) -> BlockEntityTypeDecl
fn clone(&self) -> BlockEntityTypeDecl
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 more§impl Debug for BlockEntityTypeDecl
impl Debug for BlockEntityTypeDecl
impl Eq for BlockEntityTypeDecl
§impl PartialEq for BlockEntityTypeDecl
impl PartialEq for BlockEntityTypeDecl
impl StructuralPartialEq for BlockEntityTypeDecl
Auto Trait Implementations§
impl Freeze for BlockEntityTypeDecl
impl RefUnwindSafe for BlockEntityTypeDecl
impl Send for BlockEntityTypeDecl
impl Sync for BlockEntityTypeDecl
impl Unpin for BlockEntityTypeDecl
impl UnsafeUnpin for BlockEntityTypeDecl
impl UnwindSafe for BlockEntityTypeDecl
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