pub struct GiteaPrSummary {
pub number: u64,
pub author_login: String,
pub head_sha: String,
pub base_ref: String,
pub diff_loc: u32,
}Expand description
Summary of an open pull request, extracted from the Gitea pulls API.
Only the fields required for ROC v1 verdict polling are included: the PR number, author login, head commit SHA, base branch name, and change size.
Fields§
§number: u64Pull request number (shares the Gitea issue numeric namespace).
GitHub/Gitea login of the PR author.
head_sha: StringHEAD commit SHA of the PR.
base_ref: StringBase branch ref (e.g. main).
diff_loc: u32Total diff size in lines (additions + deletions). Defaults to 0 when
Gitea does not report a value.
Trait Implementations§
Source§impl Clone for GiteaPrSummary
impl Clone for GiteaPrSummary
Source§fn clone(&self) -> GiteaPrSummary
fn clone(&self) -> GiteaPrSummary
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 GiteaPrSummary
impl Debug for GiteaPrSummary
Source§impl PartialEq for GiteaPrSummary
impl PartialEq for GiteaPrSummary
Source§fn eq(&self, other: &GiteaPrSummary) -> bool
fn eq(&self, other: &GiteaPrSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GiteaPrSummary
impl StructuralPartialEq for GiteaPrSummary
Auto Trait Implementations§
impl Freeze for GiteaPrSummary
impl RefUnwindSafe for GiteaPrSummary
impl Send for GiteaPrSummary
impl Sync for GiteaPrSummary
impl Unpin for GiteaPrSummary
impl UnsafeUnpin for GiteaPrSummary
impl UnwindSafe for GiteaPrSummary
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