pub struct CopyrightArgs {
pub license: String,
pub author: String,
pub year: Option<String>,
pub force: bool,
pub dry_run: bool,
pub check: bool,
pub verbose: bool,
pub glob: Vec<String>,
pub ext: Vec<String>,
pub exclude: Vec<String>,
}Expand description
CLI arguments for the copyright header management command.
Fields§
§license: StringLicense type (apache-2.0, mit, gpl-3.0, bsd-3-clause)
Copyright holder name
year: Option<String>Copyright year (defaults to current year)
force: boolOverwrite existing headers
dry_run: boolPreview changes without writing files
check: boolCheck for missing headers (CI mode, exits non-zero if any missing)
verbose: boolPrint detailed processing info
glob: Vec<String>Glob patterns to match files (e.g. “src/**/*.rs”)
ext: Vec<String>File extensions to include (e.g. –ext rs,js,py)
exclude: Vec<String>Patterns to exclude from processing
Trait Implementations§
Source§impl Args for CopyrightArgs
impl Args for CopyrightArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for CopyrightArgs
impl Debug for CopyrightArgs
Source§impl FromArgMatches for CopyrightArgs
impl FromArgMatches for CopyrightArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CopyrightArgs
impl RefUnwindSafe for CopyrightArgs
impl Send for CopyrightArgs
impl Sync for CopyrightArgs
impl Unpin for CopyrightArgs
impl UnsafeUnpin for CopyrightArgs
impl UnwindSafe for CopyrightArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more