Struct changelog::Commit
[−]
[src]
pub struct Commit { pub sha: String, pub author: String, pub time: String, pub summary: String, pub number: Option<u32>, pub message: String, }
A single commit
Fields
sha: String
The SHA
The author
time: String
The timestamp
summary: String
The summary
number: Option<u32>
The change number
message: String
The message
Methods
impl Commit
[src]
fn from_lines(lines: Vec<String>) -> Self
[src]
Trait Implementations
impl Debug for Commit
[src]
impl Default for Commit
[src]
impl Eq for Commit
[src]
impl PartialEq for Commit
[src]
fn eq(&self, __arg_0: &Commit) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Commit) -> bool
[src]
This method tests for !=
.
impl<T: AsRef<str>> From<T> for Commit
[src]
impl<'a> IntoIterator for &'a Commit
[src]
type Item = Line
The type of the elements being iterated over.
type IntoIter = CommitMessage<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more