pub struct GenerateOptions {
pub input_dir: String,
pub output: String,
pub title: String,
pub theme: Theme,
pub pattern: String,
}Expand description
Options for the generate command.
Fields§
§input_dir: StringInput directory containing ADR files.
output: StringOutput file path for the HTML viewer.
title: StringPage title.
theme: ThemeTheme preference.
pattern: StringGlob pattern for matching ADR files.
Implementations§
Source§impl GenerateOptions
impl GenerateOptions
Sourcepub fn new(input_dir: impl Into<String>) -> Self
pub fn new(input_dir: impl Into<String>) -> Self
Creates new options with the given input directory.
Sourcepub fn with_output(self, output: impl Into<String>) -> Self
pub fn with_output(self, output: impl Into<String>) -> Self
Sets the output file path.
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Sets the page title.
Sourcepub const fn with_theme(self, theme: Theme) -> Self
pub const fn with_theme(self, theme: Theme) -> Self
Sets the theme preference.
Sourcepub fn with_pattern(self, pattern: impl Into<String>) -> Self
pub fn with_pattern(self, pattern: impl Into<String>) -> Self
Sets the glob pattern for matching files.
Trait Implementations§
Source§impl Clone for GenerateOptions
impl Clone for GenerateOptions
Source§fn clone(&self) -> GenerateOptions
fn clone(&self) -> GenerateOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerateOptions
impl Debug for GenerateOptions
Auto Trait Implementations§
impl Freeze for GenerateOptions
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnwindSafe for GenerateOptions
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