pub struct TrackFile {
pub path: ClioPath,
pub expr: Regex,
}
Fields§
§path: ClioPath
The path to the file to track
expr: Regex
The expression to match the version number
This expression should be a regex with a single capture group that matches the version number
Trait Implementations§
Source§impl CommandRun for TrackFile
impl CommandRun for TrackFile
fn run(&self, version: &mut VersionFile) -> VersionResult<()>
Source§impl FromArgMatches for TrackFile
impl FromArgMatches for TrackFile
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 TrackFile
impl RefUnwindSafe for TrackFile
impl Send for TrackFile
impl Sync for TrackFile
impl Unpin for TrackFile
impl UnwindSafe for TrackFile
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