pub struct Link {
pub name: String,
pub location: Option<PathBuf>,
pub number: Option<SectionNumber>,
pub nested_items: Vec<SummaryItem>,
}
Expand description
A struct representing an entry in the SUMMARY.md
, possibly with nested
entries.
This is roughly the equivalent of [Some section](./path/to/file.md)
.
Fields§
§name: String
The name of the chapter.
location: Option<PathBuf>
The location of the chapter’s source file, taking the book’s src
directory as the root.
number: Option<SectionNumber>
The section number, if this chapter is in the numbered section.
nested_items: Vec<SummaryItem>
Any nested items this chapter may contain.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Link> for SummaryItem
impl From<Link> for SummaryItem
Source§fn from(other: Link) -> SummaryItem
fn from(other: Link) -> SummaryItem
Converts to this type from the input type.
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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