pub struct GitCommit {
pub sha: String,
pub node_id: String,
pub url: String,
pub author: Box<GitCommitAuthor>,
pub committer: Box<GitCommitAuthor>,
pub message: String,
pub tree: Box<GitCommitTree>,
pub parents: Vec<GitCommitParentsInner>,
pub verification: Box<GitCommitVerification>,
pub html_url: String,
}
Expand description
GitCommit : Low-level Git commit operations within a repository
Fields§
§sha: String
SHA for the commit
node_id: String
§url: String
§committer: Box<GitCommitAuthor>
§message: String
Message describing the purpose of the commit
tree: Box<GitCommitTree>
§parents: Vec<GitCommitParentsInner>
§verification: Box<GitCommitVerification>
§html_url: String
Implementations§
Source§impl GitCommit
impl GitCommit
Sourcepub fn new(
sha: String,
node_id: String,
url: String,
author: GitCommitAuthor,
committer: GitCommitAuthor,
message: String,
tree: GitCommitTree,
parents: Vec<GitCommitParentsInner>,
verification: GitCommitVerification,
html_url: String,
) -> GitCommit
pub fn new( sha: String, node_id: String, url: String, author: GitCommitAuthor, committer: GitCommitAuthor, message: String, tree: GitCommitTree, parents: Vec<GitCommitParentsInner>, verification: GitCommitVerification, html_url: String, ) -> GitCommit
Low-level Git commit operations within a repository
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitCommit
impl<'de> Deserialize<'de> for GitCommit
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
impl StructuralPartialEq for GitCommit
Auto Trait Implementations§
impl Freeze for GitCommit
impl RefUnwindSafe for GitCommit
impl Send for GitCommit
impl Sync for GitCommit
impl Unpin for GitCommit
impl UnwindSafe for GitCommit
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