#[non_exhaustive]pub struct MarkdownOptions {
pub(crate) title: Option<String>,
pub(crate) show_footer: bool,
pub(crate) show_table_of_contents: bool,
pub(crate) show_aliases: bool,
}Expand description
Options to customize the structure of the output Markdown document.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>§show_table_of_contents: bool§show_aliases: boolImplementations§
Source§impl MarkdownOptions
impl MarkdownOptions
Whether to show the default footer advertising clap-markdown.
Sourcepub fn show_table_of_contents(self, show: bool) -> Self
pub fn show_table_of_contents(self, show: bool) -> Self
Whether to show the default table of contents.
Sourcepub fn show_aliases(self, show: bool) -> Self
pub fn show_aliases(self, show: bool) -> Self
Whether to show aliases for arguments and commands.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MarkdownOptions
impl RefUnwindSafe for MarkdownOptions
impl Send for MarkdownOptions
impl Sync for MarkdownOptions
impl Unpin for MarkdownOptions
impl UnwindSafe for MarkdownOptions
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes