pub struct RepoCommit {
pub author: CommitUser,
pub committer: CommitUser,
pub message: String,
pub url: String,
}
Expand description
Represents the actual commit object in the underlying git repository. This struct is a subset of the full commit object. It does not include the full commit tree or commit verification.
Fields§
Author of the commit (usually the person who originally wrote the code).
committer: CommitUser
The person who committed the code on behalf of the author. May be the same as the author.
message: String
The commit message.
url: String
The API endpoint for the commit (https://gitea-host.com/api/v1/repos/{user}/{repo}/git/commits/{sha}.
Trait Implementations§
Source§impl Clone for RepoCommit
impl Clone for RepoCommit
Source§fn clone(&self) -> RepoCommit
fn clone(&self) -> RepoCommit
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepoCommit
impl Debug for RepoCommit
Source§impl Default for RepoCommit
impl Default for RepoCommit
Source§fn default() -> RepoCommit
fn default() -> RepoCommit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepoCommitwhere
RepoCommit: Default,
impl<'de> Deserialize<'de> for RepoCommitwhere
RepoCommit: Default,
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 RepoCommit
impl RefUnwindSafe for RepoCommit
impl Send for RepoCommit
impl Sync for RepoCommit
impl Unpin for RepoCommit
impl UnwindSafe for RepoCommit
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