[][src]Struct mdbook::book::Link

pub struct Link {
    pub name: String,
    pub location: PathBuf,
    pub number: Option<SectionNumber>,
    pub nested_items: Vec<SummaryItem>,
}

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: 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.

Methods

impl Link
[src]

pub fn new<S: Into<String>, P: AsRef<Path>>(name: S, location: P) -> Link
[src]

Create a new link with no nested items.

Trait Implementations

impl From<Link> for SummaryItem
[src]

impl Default for Link
[src]

impl PartialEq<Link> for Link
[src]

impl Clone for Link
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Link
[src]

impl Serialize for Link
[src]

impl<'de> Deserialize<'de> for Link
[src]

Auto Trait Implementations

impl Send for Link

impl Sync for Link

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]