pub struct ReadmeOptions {
pub add_title: bool,
pub add_badges: bool,
pub add_license: bool,
pub indent_headings: bool,
pub extract_from_comment: bool,
}Expand description
Toggles controlling how the README is generated.
Bundling these flags keeps generate_readme free of a long run of same-typed bool
arguments, which are easy to transpose at the call site.
Fields§
§add_title: boolPrepend the crate name as a title. Ignored when using a template.
add_badges: boolPrepend the badges defined in Cargo.toml. Ignored when using a template.
add_license: boolAppend the license defined in Cargo.toml. Ignored when using a template.
indent_headings: boolAdd an extra level to headings so the crate name can be the top heading.
extract_from_comment: boolExtract docs from comments rather than processing the input file as-is.
Trait Implementations§
Source§impl Clone for ReadmeOptions
impl Clone for ReadmeOptions
Source§fn clone(&self) -> ReadmeOptions
fn clone(&self) -> ReadmeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadmeOptions
Source§impl Debug for ReadmeOptions
impl Debug for ReadmeOptions
Auto Trait Implementations§
impl Freeze for ReadmeOptions
impl RefUnwindSafe for ReadmeOptions
impl Send for ReadmeOptions
impl Sync for ReadmeOptions
impl Unpin for ReadmeOptions
impl UnsafeUnpin for ReadmeOptions
impl UnwindSafe for ReadmeOptions
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