Enum git_checks::ChangelogStyle
source · pub enum ChangelogStyle {
Directory {
path: String,
extension: Option<String>,
},
File {
path: String,
},
Files {
paths: Vec<String>,
},
}
Expand description
The style of changelog management in use.
Variants§
Directory
Fields
A directory stores a file per changelog entry.
File
A file contains the changelog entries for a project.
Files
A set of files containing the changelog entries for a project.
Implementations§
source§impl ChangelogStyle
impl ChangelogStyle
sourcepub fn file<P>(path: P) -> Selfwhere
P: Into<String>,
pub fn file<P>(path: P) -> Selfwhere P: Into<String>,
A changelog stored in a file at a given path.
sourcepub fn directory<P>(path: P, ext: Option<String>) -> Selfwhere
P: Into<String>,
pub fn directory<P>(path: P, ext: Option<String>) -> Selfwhere P: Into<String>,
A directory containing many files, each with a changelog entry.
Entries may also be required to have a given extension.
sourcepub fn files<P, I>(paths: I) -> Selfwhere
I: IntoIterator<Item = P>,
P: Into<String>,
pub fn files<P, I>(paths: I) -> Selfwhere I: IntoIterator<Item = P>, P: Into<String>,
A changelog stored in files at the given paths.
Trait Implementations§
source§impl Clone for ChangelogStyle
impl Clone for ChangelogStyle
source§fn clone(&self) -> ChangelogStyle
fn clone(&self) -> ChangelogStyle
Returns a copy 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 RefUnwindSafe for ChangelogStyle
impl Send for ChangelogStyle
impl Sync for ChangelogStyle
impl Unpin for ChangelogStyle
impl UnwindSafe for ChangelogStyle
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