Struct ftd::toc::TocItem[][src]

pub struct TocItem {
    pub id: String,
    pub url: String,
    pub title: Rendered,
    pub children: Vec<TocItem>,
}

Fields

id: Stringurl: Stringtitle: Renderedchildren: Vec<TocItem>

Implementations

impl TocItem[src]

pub fn with_collection(self, collection: &str) -> Self[src]

pub fn get_module_title(&self, id: &str) -> Option<String>[src]

pub fn with_title_and_id(title: &str, id: &str) -> Self[src]

pub fn to_html_string(&self, id: &str, level: i32) -> String[src]

pub fn to_str(&self, space: i32) -> String[src]

Trait Implementations

impl Clone for TocItem[src]

impl Debug for TocItem[src]

impl Default for TocItem[src]

impl PartialEq<TocItem> for TocItem[src]

impl Serialize for TocItem[src]

impl StructuralPartialEq for TocItem[src]

Auto Trait Implementations

impl RefUnwindSafe for TocItem

impl Send for TocItem

impl Sync for TocItem

impl Unpin for TocItem

impl UnwindSafe for TocItem

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> CloneAny for T where
    T: Any + Clone

impl<T> DebugAny for T where
    T: Any + Debug

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<T> UnsafeAny for T where
    T: Any