pub struct Commit {
pub author: Option<User>,
pub commit: RepoCommit,
pub committer: Option<User>,
pub html_url: String,
pub sha: String,
pub url: String,
}
Expand description
Represents a commit in a repository. This struct is a subset of the full commit object. It does not include the affected files, parent commits or commit stats (additions and deletions).
Fields§
The commit author’s Gitea account. See RepoCommit::author for more information. NOTE: This is not guaranteed to be a valid Gitea user. Because of the nature of Git, this field can be null
commit: RepoCommit
§committer: Option<User>
The committer’s Gitea account. See RepoCommit::committer for more information. NOTE: This is not guaranteed to be a valid Gitea user. Because of the nature of Git, this field can be null
html_url: String
The URL to the commit on the Gitea instance.
sha: String
The SHA of the commit.
url: String
The API endpoint URL for the commit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commit
impl<'de> Deserialize<'de> for Commit
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 Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnwindSafe for Commit
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