pub struct WikiOptions {
pub input_dir: String,
pub output_dir: String,
pub pages_url: Option<String>,
pub pattern: String,
}Expand description
Options for the wiki command.
Fields§
§input_dir: StringInput directory containing ADR files.
output_dir: StringOutput directory for wiki files.
pages_url: Option<String>Optional URL to the GitHub Pages viewer.
pattern: StringGlob pattern for matching ADR files.
Implementations§
Source§impl WikiOptions
impl WikiOptions
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_dir(self, output_dir: impl Into<String>) -> Self
pub fn with_output_dir(self, output_dir: impl Into<String>) -> Self
Sets the output directory.
Sourcepub fn with_pages_url(self, url: impl Into<String>) -> Self
pub fn with_pages_url(self, url: impl Into<String>) -> Self
Sets the GitHub Pages URL.
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 WikiOptions
impl Clone for WikiOptions
Source§fn clone(&self) -> WikiOptions
fn clone(&self) -> WikiOptions
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 WikiOptions
impl Debug for WikiOptions
Auto Trait Implementations§
impl Freeze for WikiOptions
impl RefUnwindSafe for WikiOptions
impl Send for WikiOptions
impl Sync for WikiOptions
impl Unpin for WikiOptions
impl UnwindSafe for WikiOptions
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