pub struct BookView {
pub id: String,
pub title: String,
pub summary: String,
pub chapters: Vec<ChapterView>,
}Expand description
One book (all recipes from one crate) in a CookbookView.
Fields§
§id: StringLib id of the book.
title: StringHuman book title.
summary: StringOne-line book summary (may be empty).
chapters: Vec<ChapterView>Chapters sorted by chapter_order, then name.
Trait Implementations§
impl Eq for BookView
impl StructuralPartialEq for BookView
Auto Trait Implementations§
impl Freeze for BookView
impl RefUnwindSafe for BookView
impl Send for BookView
impl Sync for BookView
impl Unpin for BookView
impl UnsafeUnpin for BookView
impl UnwindSafe for BookView
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