pub struct HeaderOptions {
pub text: String,
pub update_year: bool,
pub file_extensions: Vec<String>,
pub recursive: bool,
pub dry_run: bool,
}Expand description
Options for header management
Fields§
§text: StringThe header text to insert (without comment markers – those are part of the text)
update_year: boolIf true, replace {year} in the header text with the current year
file_extensions: Vec<String>File extensions to process
recursive: boolProcess directories recursively
dry_run: boolDry run mode (don’t modify files)
Trait Implementations§
Source§impl Clone for HeaderOptions
impl Clone for HeaderOptions
Source§fn clone(&self) -> HeaderOptions
fn clone(&self) -> HeaderOptions
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 HeaderOptions
impl Debug for HeaderOptions
Auto Trait Implementations§
impl Freeze for HeaderOptions
impl RefUnwindSafe for HeaderOptions
impl Send for HeaderOptions
impl Sync for HeaderOptions
impl Unpin for HeaderOptions
impl UnsafeUnpin for HeaderOptions
impl UnwindSafe for HeaderOptions
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