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
path: StringThe path to the directory containing changelog entry files.
A directory stores a file per changelog entry.
File
Fields
path: StringThe path to the changelog.
A file contains the changelog entries for a project.
Files
A set of files containing the changelog entries for a project.
Implementations
sourceimpl ChangelogStyle
 
impl ChangelogStyle
sourcepub fn file<P>(path: P) -> Self where
    P: Into<String>, 
 
pub fn file<P>(path: P) -> Self where
    P: Into<String>, 
A changelog stored in a file at a given path.
sourcepub fn directory<P>(path: P, ext: Option<String>) -> Self where
    P: Into<String>, 
 
pub fn directory<P>(path: P, ext: Option<String>) -> Self where
    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) -> Self where
    I: IntoIterator<Item = P>,
    P: Into<String>, 
 
pub fn files<P, I>(paths: I) -> Self where
    I: IntoIterator<Item = P>,
    P: Into<String>, 
A changelog stored in files at the given paths.
Trait Implementations
sourceimpl Clone for ChangelogStyle
 
impl Clone for ChangelogStyle
sourcefn clone(&self) -> ChangelogStyle
 
fn clone(&self) -> ChangelogStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChangelogStyle
impl Send for ChangelogStyle
impl Sync for ChangelogStyle
impl Unpin for ChangelogStyle
impl UnwindSafe for ChangelogStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more