pub struct CustomVersionFile {
pub path: PathBuf,
pub pattern: String,
}Expand description
A user-defined version file matched by path and regex.
Processed by RegexVersionFile
during update_version_files.
Fields§
§path: PathBufPath to the file, relative to the repository root.
pattern: StringRegex pattern whose first capture group contains the version string.
Trait Implementations§
Source§impl Clone for CustomVersionFile
impl Clone for CustomVersionFile
Source§fn clone(&self) -> CustomVersionFile
fn clone(&self) -> CustomVersionFile
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 moreAuto Trait Implementations§
impl Freeze for CustomVersionFile
impl RefUnwindSafe for CustomVersionFile
impl Send for CustomVersionFile
impl Sync for CustomVersionFile
impl Unpin for CustomVersionFile
impl UnsafeUnpin for CustomVersionFile
impl UnwindSafe for CustomVersionFile
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