pub struct MemoryImportGitArgs {
pub config: PathBuf,
pub repo: Option<PathBuf>,
pub limit: usize,
pub dry_run: bool,
}Fields§
§config: PathBuf§repo: Option<PathBuf>Git 仓库路径(默认当前目录)
limit: usize扫描最近 N 条 commit(默认 30)
dry_run: bool只预览不写入
Trait Implementations§
Source§impl Args for MemoryImportGitArgs
impl Args for MemoryImportGitArgs
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 Clone for MemoryImportGitArgs
impl Clone for MemoryImportGitArgs
Source§fn clone(&self) -> MemoryImportGitArgs
fn clone(&self) -> MemoryImportGitArgs
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 moreSource§impl Debug for MemoryImportGitArgs
impl Debug for MemoryImportGitArgs
Source§impl FromArgMatches for MemoryImportGitArgs
impl FromArgMatches for MemoryImportGitArgs
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 MemoryImportGitArgs
impl RefUnwindSafe for MemoryImportGitArgs
impl Send for MemoryImportGitArgs
impl Sync for MemoryImportGitArgs
impl Unpin for MemoryImportGitArgs
impl UnsafeUnpin for MemoryImportGitArgs
impl UnwindSafe for MemoryImportGitArgs
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