pub struct BookCategory {
pub id: String,
pub name: String,
pub description: Option<String>,
pub icon: Option<String>,
pub sortnum: i32,
}Expand description
Represents a book category tab (e.g. “Basics”, “Patterns”).
Fields§
§id: String§name: String§description: Option<String>§icon: Option<String>Texture for the category icon (path like “minecraft:textures/…” or “hexcasting:textures/item/…”)
sortnum: i32Sort priority (lower = first).
Trait Implementations§
Source§impl Clone for BookCategory
impl Clone for BookCategory
Source§fn clone(&self) -> BookCategory
fn clone(&self) -> BookCategory
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 moreAuto Trait Implementations§
impl Freeze for BookCategory
impl RefUnwindSafe for BookCategory
impl Send for BookCategory
impl Sync for BookCategory
impl Unpin for BookCategory
impl UnsafeUnpin for BookCategory
impl UnwindSafe for BookCategory
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