pub struct CommitDetails {
pub author: GitSignature,
pub committer: GitSignature,
pub message: String,
pub tree: CommitReference,
pub verification: Option<Verification>,
pub comment_count: u32,
}Expand description
Git-level commit metadata.
Contains the information stored in the Git object itself, as opposed to
the GitHub-specific metadata on FullCommit.
§Examples
let commit = client.get_commit("owner", "repo", "abc123").await?;
let details = &commit.commit;
println!("Author: {} <{}>", details.author.name, details.author.email);
println!("Message: {}", details.message.lines().next().unwrap_or(""));Fields§
Commit author identity from Git config.
committer: GitSignatureCommit committer identity from Git config.
message: StringFull commit message (subject + optional body).
tree: CommitReferenceReference to the Git tree object for this commit.
verification: Option<Verification>GPG / SSH signature verification status.
None when the GitHub API does not include verification data.
comment_count: u32Number of comments on this commit (Git-object level).
The GitHub API returns this field at both the CommitDetails level and on
the outer FullCommit envelope. Both values are preserved because the
API response contains the count at each level of the object.
Trait Implementations§
Source§impl Clone for CommitDetails
impl Clone for CommitDetails
Source§fn clone(&self) -> CommitDetails
fn clone(&self) -> CommitDetails
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 CommitDetails
impl Debug for CommitDetails
Source§impl<'de> Deserialize<'de> for CommitDetails
impl<'de> Deserialize<'de> for CommitDetails
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 CommitDetails
impl RefUnwindSafe for CommitDetails
impl Send for CommitDetails
impl Sync for CommitDetails
impl Unpin for CommitDetails
impl UnsafeUnpin for CommitDetails
impl UnwindSafe for CommitDetails
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