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

pub struct Link {
    pub name: String,
    pub location: Option<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: 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

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 Clone for Link[src]

impl Debug for Link[src]

impl Default for Link[src]

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

impl From<Link> for SummaryItem[src]

impl PartialEq<Link> for Link[src]

impl Serialize for Link[src]

impl StructuralPartialEq for Link[src]

Auto Trait Implementations

impl RefUnwindSafe for Link

impl Send for Link

impl Sync for Link

impl Unpin for Link

impl UnwindSafe for Link

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,