pub struct ScopeDefinition {
pub name: String,
pub description: String,
pub examples: Vec<String>,
pub file_patterns: Vec<String>,
}Expand description
Definition of a valid scope in the project.
Fields§
§name: StringName of the scope.
description: StringHuman-readable description of the scope.
examples: Vec<String>Example commit messages using this scope.
file_patterns: Vec<String>File patterns that match this scope.
Trait Implementations§
Source§impl Clone for ScopeDefinition
impl Clone for ScopeDefinition
Source§fn clone(&self) -> ScopeDefinition
fn clone(&self) -> ScopeDefinition
Returns a duplicate 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 moreSource§impl Debug for ScopeDefinition
impl Debug for ScopeDefinition
Source§impl<'de> Deserialize<'de> for ScopeDefinition
impl<'de> Deserialize<'de> for ScopeDefinition
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
Auto Trait Implementations§
impl Freeze for ScopeDefinition
impl RefUnwindSafe for ScopeDefinition
impl Send for ScopeDefinition
impl Sync for ScopeDefinition
impl Unpin for ScopeDefinition
impl UnsafeUnpin for ScopeDefinition
impl UnwindSafe for ScopeDefinition
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