#[non_exhaustive]pub struct PullRequestDetails {Show 13 fields
pub key: String,
pub title: String,
pub url: String,
pub status: PullRequestStatus,
pub author: Option<String>,
pub review: Option<ReviewStatus>,
pub checks: Option<CheckStatus>,
pub check_counts: Option<CheckCounts>,
pub updated_at: Option<String>,
pub head_ref: Option<String>,
pub base_ref: Option<String>,
pub additions: Option<u32>,
pub deletions: Option<u32>,
}Expand description
A short pull request summary, held only in memory for this account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe canonical owner/repository#number.
title: String§url: StringThe canonical pull request URL.
status: PullRequestStatusThe author’s login.
review: Option<ReviewStatus>§checks: Option<CheckStatus>§check_counts: Option<CheckCounts>How many checks passed out of how many, beside checks; None when
the responder has not read them.
updated_at: Option<String>When it last changed, as RFC 3339.
head_ref: Option<String>§base_ref: Option<String>§additions: Option<u32>§deletions: Option<u32>Implementations§
Source§impl PullRequestDetails
impl PullRequestDetails
pub fn new(key: &str, title: &str, url: &str, status: PullRequestStatus) -> Self
pub fn with_review(self, review: Option<ReviewStatus>) -> Self
pub fn with_checks(self, checks: Option<CheckStatus>) -> Self
Sourcepub fn with_check_counts(self, counts: Option<CheckCounts>) -> Self
pub fn with_check_counts(self, counts: Option<CheckCounts>) -> Self
How many checks passed out of how many.
pub fn with_updated_at(self, updated_at: Option<&str>) -> Self
Trait Implementations§
Source§impl Clone for PullRequestDetails
impl Clone for PullRequestDetails
impl Eq for PullRequestDetails
Source§impl PartialEq for PullRequestDetails
impl PartialEq for PullRequestDetails
impl StructuralPartialEq for PullRequestDetails
Auto Trait Implementations§
impl Forget for PullRequestDetails
impl Freeze for PullRequestDetails
impl Move for PullRequestDetails
impl RefUnwindSafe for PullRequestDetails
impl Send for PullRequestDetails
impl Sync for PullRequestDetails
impl Unpin for PullRequestDetails
impl UnsafeUnpin for PullRequestDetails
impl UnwindSafe for PullRequestDetails
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