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]
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 StructuralPartialEq for Document
[src]
impl StructuralPartialEq for Document
[src]Auto Trait Implementations
impl RefUnwindSafe for Document
impl RefUnwindSafe for Document
impl UnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,