pub struct HomeSection<'a> {
pub label: &'a str,
pub slug: &'a str,
pub count: usize,
}Expand description
One section card on the home dashboard: a top-level folder (“section”), the
number of docs in it, and a link to its first page. Mirrors the original
home’s sectionCards.
Fields§
§label: &'a str§slug: &'a strSlug of the section’s first doc (template prefixes base). Folders have no
index doc, so this points at a real page.
count: usizeTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HomeSection<'a>
impl<'a> RefUnwindSafe for HomeSection<'a>
impl<'a> Send for HomeSection<'a>
impl<'a> Sync for HomeSection<'a>
impl<'a> Unpin for HomeSection<'a>
impl<'a> UnsafeUnpin for HomeSection<'a>
impl<'a> UnwindSafe for HomeSection<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more