pub struct LibView {
pub id: String,
pub title: String,
pub loaded: bool,
pub groups: Vec<ChapterView>,
pub recipes: Vec<RecipeCard>,
}Expand description
One loadable lib entry in the top-level cookbook tree.
Fields§
§id: StringCookbook-facing lib id, such as numbers/i64.
title: StringHuman lib title.
loaded: boolWhether the lib is loaded in the projected recipe store.
groups: Vec<ChapterView>Grouped recipe chapters for loaded libs.
recipes: Vec<RecipeCard>Lifecycle load recipes for unloaded libs.
Trait Implementations§
impl Eq for LibView
impl StructuralPartialEq for LibView
Auto Trait Implementations§
impl Freeze for LibView
impl RefUnwindSafe for LibView
impl Send for LibView
impl Sync for LibView
impl Unpin for LibView
impl UnsafeUnpin for LibView
impl UnwindSafe for LibView
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