Struct ftd::document::Document[][src]

pub struct Document {
    pub sections: Vec<Section>,
    pub pr_sections: LinkedHashMap<String, PR>,
}

Fields

sections: Vec<Section>pr_sections: LinkedHashMap<String, PR>

Implementations

impl Document[src]

pub fn new(sections: &[Section]) -> Self[src]

pub fn set_default_meta(&mut self, meta: Meta)[src]

pub fn is_public(&self) -> bool[src]

pub fn can_read(&self, username: Option<String>) -> bool[src]

pub fn can_write(&self, username: &str) -> bool[src]

pub fn can_admin(&self, username: &str) -> bool[src]

pub fn without_special(self) -> Self[src]

pub fn get_toc(&self) -> Option<ToC>[src]

pub fn get_header(&self) -> ToC[src]

pub fn get_second(&self) -> Option<ToC>[src]

pub fn get_design(&self) -> Design[src]

pub fn get_meta(&self) -> Option<Meta>[src]

pub fn get_meta_ref(&self) -> Option<&Meta>[src]

pub fn get_translation(&self) -> Option<&Translation>[src]

pub fn get_language_with_default(&self) -> Language[src]

pub fn get_language(&self) -> Option<Language>[src]

pub fn get_translation_and_lang(&self) -> Option<(&Translation, &Language)>[src]

pub fn get_title(&self) -> String[src]

pub fn no_index(&self) -> bool[src]

pub fn get_pr_sections(&self) -> Vec<&PR>[src]

pub fn get_pr_sections_map(sections: &[Section]) -> LinkedHashMap<String, PR>[src]

pub fn parse(s: &str, id: &str) -> Result<Self, ParseError>[src]

pub fn to_string(sections: &[Section]) -> String[src]

Trait Implementations

impl Clone for Document[src]

impl Debug for Document[src]

impl Default for Document[src]

impl PartialEq<Document> for Document[src]

impl Serialize for Document[src]

impl StructuralPartialEq for Document[src]

impl ToString for Document[src]

Auto Trait Implementations

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