pub struct Compare {
pub base_ref: String,
pub base_sha: String,
pub head: HeadRef,
pub ahead_by: u64,
pub behind_by: u64,
pub merge_base: Option<String>,
pub commits: Vec<CommitSummary>,
pub has_more: bool,
pub files: Vec<DiffFile>,
}Expand description
Everything a compare view needs.
Fields§
§base_ref: StringBase ref as requested.
base_sha: StringBase commit id.
head: HeadRefResolved head.
ahead_by: u64Commits in head not in base.
behind_by: u64Commits in base not in head.
merge_base: Option<String>Merge base, when the histories are related.
commits: Vec<CommitSummary>First page of ahead commits.
has_more: boolMore commits than one page.
files: Vec<DiffFile>Structured diff.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compare
impl RefUnwindSafe for Compare
impl Send for Compare
impl Sync for Compare
impl Unpin for Compare
impl UnsafeUnpin for Compare
impl UnwindSafe for Compare
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