Struct mdbook::book::bookitem::BookItem [] [src]

pub struct BookItem {
    pub name: String,
    pub path: PathBuf,
    pub sub_items: Vec<BookItem>,
    // some fields omitted
}

Fields

name: String path: PathBuf sub_items: Vec<BookItem>

Methods

impl BookItem
[src]

fn new(name: String, path: PathBuf) -> Self

Trait Implementations

impl Clone for BookItem
[src]

fn clone(&self) -> BookItem

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for BookItem
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToJson for BookItem
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON