Struct changelog::Conventions
[−]
[src]
pub struct Conventions { pub scopes: Vec<Keyword>, pub categories: Vec<Keyword>, }
The change categorization conventions used by a repository/project.
Fields
scopes: Vec<Keyword>
The scope keywords
categories: Vec<Keyword>
The category keywords
Methods
impl Conventions
[src]
fn scope_title(&self, scope: Option<String>) -> Option<&str>
[src]
Get the title for the given scope
fn category_title(&self, category: Option<String>) -> Option<&str>
[src]
Get the title for the given category
fn category_titles(&self) -> Vec<&str>
[src]
Get the titles for all the categories defined
fn scope_titles(&self) -> Vec<&str>
[src]
Get the titles for all the scopes defined
Trait Implementations
impl Debug for Conventions
[src]
impl Default for Conventions
[src]
fn default() -> Conventions
[src]
Returns the "default value" for a type. Read more
impl Eq for Conventions
[src]
impl PartialEq for Conventions
[src]
fn eq(&self, __arg_0: &Conventions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Conventions) -> bool
[src]
This method tests for !=
.