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

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

The name of the chapter.

The location of the chapter's source file, taking the book's src directory as the root.

The section number, if this chapter is in the numbered section.

Any nested items this chapter may contain.

Methods

impl Link
[src]

[src]

Create a new link with no nested items.

Trait Implementations

impl Debug for Link
[src]

[src]

Formats the value using the given formatter.

impl Clone for Link
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Link
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for Link
[src]

[src]

Returns the "default value" for a type. Read more