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: String
The path to the directory containing changelog entry files.
A directory stores a file per changelog entry.
File
Fields
path: String
The 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more