pub struct BookEntry {
pub id: String,
pub name: String,
pub category: String,
pub pages: Vec<BookPage>,
pub icon: Option<String>,
pub secret: bool,
pub priority: i32,
}Expand description
One entry in a book (like a “page” in the TOC sidebar).
Fields§
§id: String§name: String§category: String§pages: Vec<BookPage>§icon: Option<String>Entry icon (item id).
secret: boolIf true, hides from the book (used for unlocks).
priority: i32Sort priority (lower = first).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BookEntry
impl RefUnwindSafe for BookEntry
impl Send for BookEntry
impl Sync for BookEntry
impl Unpin for BookEntry
impl UnsafeUnpin for BookEntry
impl UnwindSafe for BookEntry
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