Struct git_cliff_core::commit::Commit [−][src]
pub struct Commit<'a> {
pub id: String,
pub message: String,
pub conv: Option<ConventionalCommit<'a>>,
pub group: Option<String>,
pub scope: Option<String>,
}
Expand description
Common commit object that is parsed from a repository.
Fields
id: String
Commit ID.
message: String
Commit message including title, description and summary.
conv: Option<ConventionalCommit<'a>>
Conventional commit.
group: Option<String>
Commit group based on a commit parser or its conventional type.
scope: Option<String>
Commit scope based on conventional type or a commit parser.
Implementations
Processes the commit.
- converts commit to a conventional commit
- sets the group for the commit
Returns the commit with its conventional type set.
Parses the commit using CommitParser
s.
Trait Implementations
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<'a> RefUnwindSafe for Commit<'a>
impl<'a> UnwindSafe for Commit<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more