pub struct CommitDetail {
pub sha: String,
pub message: String,
pub author: UserSummary,
pub committer: UserSummary,
pub diff: Option<String>,
pub files: Vec<CommitFile>,
}Expand description
A detailed view of a commit, including diff and per-file changes.
Returned by CommitProvider::view when the caller needs the full
diff payload and file-level breakdown.
Fields§
§sha: StringThe full SHA hash of the commit.
message: StringThe commit message (first line + body).
The commit author.
committer: UserSummaryThe committer.
diff: Option<String>The full unified diff output (if available).
files: Vec<CommitFile>The list of changed files.
Trait Implementations§
Source§impl Clone for CommitDetail
impl Clone for CommitDetail
Source§fn clone(&self) -> CommitDetail
fn clone(&self) -> CommitDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitDetail
impl Debug for CommitDetail
Source§impl<'de> Deserialize<'de> for CommitDetail
impl<'de> Deserialize<'de> for CommitDetail
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 CommitDetail
impl RefUnwindSafe for CommitDetail
impl Send for CommitDetail
impl Sync for CommitDetail
impl Unpin for CommitDetail
impl UnsafeUnpin for CommitDetail
impl UnwindSafe for CommitDetail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more