pub struct PullRequestDetail {Show 16 fields
pub summary: PullRequestSummary,
pub body: String,
pub head_sha: String,
pub base_sha: String,
pub merge_state: MergeState,
pub checks: Option<ChecksState>,
pub created_at: String,
pub additions: Option<u32>,
pub deletions: Option<u32>,
pub changed_files: Option<u32>,
pub capabilities: ReviewCapabilities,
pub patch_sets: Vec<PatchSet>,
pub shown_patch_set: Option<u32>,
pub vote_labels: Vec<VoteLabel>,
pub can_submit: bool,
pub can_abandon: bool,
}Expand description
One pull/merge request, read for review.
Fields§
§summary: PullRequestSummary§body: StringThe description, markdown as the host stores it.
head_sha: StringThe head commit the review is about. Pass it back in
ReviewSubmission::head_sha so a comment cannot land on a newer
push than the one the reviewer read.
base_sha: StringThe base branch tip the host last compared against (the diff’s real base is the merge base, which git computes locally).
merge_state: MergeState§checks: Option<ChecksState>§created_at: String§additions: Option<u32>None when the host does not say.
deletions: Option<u32>§changed_files: Option<u32>§capabilities: ReviewCapabilitiesWhat this client lets the reviewer do (so a UI can hide the rest).
patch_sets: Vec<PatchSet>The numbered patch sets of the request, oldest first (Gerrit; empty
elsewhere). head_sha is the one of Self::shown_patch_set.
shown_patch_set: Option<u32>The patch set this detail (and its files and threads) describes.
vote_labels: Vec<VoteLabel>The labels the user may vote on, each with the values the server permits for this request (Gerrit; empty elsewhere).
can_submit: boolThe server says this request can be submitted (merged) right now
(Gerrit; false elsewhere, where merging is not a review action).
can_abandon: boolThe user may abandon this request (Gerrit; false elsewhere).
Trait Implementations§
Source§impl Clone for PullRequestDetail
impl Clone for PullRequestDetail
Source§impl Debug for PullRequestDetail
impl Debug for PullRequestDetail
Source§impl<'de> Deserialize<'de> for PullRequestDetail
impl<'de> Deserialize<'de> for PullRequestDetail
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>,
impl Eq for PullRequestDetail
Source§impl PartialEq for PullRequestDetail
impl PartialEq for PullRequestDetail
Source§impl Serialize for PullRequestDetail
impl Serialize for PullRequestDetail
impl StructuralPartialEq for PullRequestDetail
Auto Trait Implementations§
impl Forget for PullRequestDetail
impl Freeze for PullRequestDetailwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PatchSet>: Freeze,
PhantomData<VoteLabel>: Freeze,
impl Move for PullRequestDetail
impl RefUnwindSafe for PullRequestDetail
impl Send for PullRequestDetailwhere
RawVecInner: Send,
impl Sync for PullRequestDetailwhere
RawVecInner: Sync,
impl Unpin for PullRequestDetail
impl UnsafeUnpin for PullRequestDetailwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PatchSet>: UnsafeUnpin,
PhantomData<VoteLabel>: UnsafeUnpin,
impl UnwindSafe for PullRequestDetailwhere
RawVecInner: UnwindSafe,
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.