pub struct Conventions {
pub scopes: Vec<Keyword>,
pub categories: Vec<Keyword>,
}
Expand description
The change categorization conventions used by a repository/project.
Fields§
§scopes: Vec<Keyword>
The scope keywords
categories: Vec<Keyword>
The category keywords
Implementations§
Source§impl Conventions
impl Conventions
Sourcepub fn scope_title(&self, scope: Option<String>) -> Option<&str>
pub fn scope_title(&self, scope: Option<String>) -> Option<&str>
Get the title for the given scope
Sourcepub fn category_title(&self, category: Option<String>) -> Option<&str>
pub fn category_title(&self, category: Option<String>) -> Option<&str>
Get the title for the given category
Sourcepub fn category_titles(&self) -> Vec<&str>
pub fn category_titles(&self) -> Vec<&str>
Get the titles for all the categories defined
Sourcepub fn scope_titles(&self) -> Vec<&str>
pub fn scope_titles(&self) -> Vec<&str>
Get the titles for all the scopes defined
Trait Implementations§
Source§impl Debug for Conventions
impl Debug for Conventions
Source§impl Default for Conventions
impl Default for Conventions
Source§fn default() -> Conventions
fn default() -> Conventions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Conventionswhere
Conventions: Default,
impl<'de> Deserialize<'de> for Conventionswhere
Conventions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Conventions
impl PartialEq for Conventions
impl Eq for Conventions
impl StructuralPartialEq for Conventions
Auto Trait Implementations§
impl Freeze for Conventions
impl RefUnwindSafe for Conventions
impl Send for Conventions
impl Sync for Conventions
impl Unpin for Conventions
impl UnwindSafe for Conventions
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