pub struct BookConfig { /* private fields */ }
Implementations§
Source§impl BookConfig
impl BookConfig
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn item_count(&self) -> usize
pub fn with_title<S>(self, title: S) -> Self
pub const fn title(&self) -> &String
pub fn with_introduction<P>(self, introduction_file: P) -> Self
pub const fn introduction(&self) -> Option<&PathBuf>
pub fn with_content(self, content: ContentSection) -> Self
pub const fn content(&self) -> &ContentSection
pub fn with_output_format<S>(self, output_format: DocumentFormat) -> Self
pub const fn output_format(&self) -> DocumentFormat
pub fn with_output_file<P>(self, output_file: P) -> Self
pub const fn output_file(&self) -> &PathBuf
pub fn with_language<S>(self, language: S) -> Self
pub const fn language(&self) -> Option<&String>
pub fn with_options(self, options: BookOptions) -> Self
pub const fn options(&self) -> &BookOptions
pub fn with_annotation_categories( self, annotation_categories: AnnotationCategories, ) -> Self
pub const fn annotation_categories(&self) -> &AnnotationCategories
Trait Implementations§
Source§impl Clone for BookConfig
impl Clone for BookConfig
Source§fn clone(&self) -> BookConfig
fn clone(&self) -> BookConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BookConfig
impl Debug for BookConfig
Source§impl Default for BookConfig
impl Default for BookConfig
Source§impl<'de> Deserialize<'de> for BookConfig
impl<'de> Deserialize<'de> for BookConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for BookConfig
impl FromStr for BookConfig
Auto Trait Implementations§
impl Freeze for BookConfig
impl RefUnwindSafe for BookConfig
impl Send for BookConfig
impl Sync for BookConfig
impl Unpin for BookConfig
impl UnwindSafe for BookConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more