Struct version_manager::cli::files::TrackFile
source · pub struct TrackFile {
pub path: ClioPath,
pub expr: Regex,
}Fields§
§path: ClioPathThe path to the file to track
expr: RegexThe expression to match the version number
This expression should be a regex with a single capture group that matches the version number
Implementations§
source§impl TrackFile
impl TrackFile
pub fn run(&self, version: &mut VersionFile) -> Result<(), VersionError>
Trait Implementations§
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