pub struct ChapterView {
pub name: String,
pub title: String,
pub summary: String,
pub recipes: Vec<RecipeCard>,
}Expand description
One chapter within a BookView.
Fields§
§name: StringChapter directory name (stable id within the book).
title: StringHuman chapter title.
summary: StringOne-line chapter summary (may be empty).
recipes: Vec<RecipeCard>Recipes sorted by order, then id.
Trait Implementations§
Source§impl Clone for ChapterView
impl Clone for ChapterView
Source§fn clone(&self) -> ChapterView
fn clone(&self) -> ChapterView
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 ChapterView
impl Debug for ChapterView
impl Eq for ChapterView
Source§impl PartialEq for ChapterView
impl PartialEq for ChapterView
Source§fn eq(&self, other: &ChapterView) -> bool
fn eq(&self, other: &ChapterView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChapterView
Auto Trait Implementations§
impl Freeze for ChapterView
impl RefUnwindSafe for ChapterView
impl Send for ChapterView
impl Sync for ChapterView
impl Unpin for ChapterView
impl UnsafeUnpin for ChapterView
impl UnwindSafe for ChapterView
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