pub struct PullRequest {
pub number: u64,
pub title: String,
pub state: String,
pub url: String,
pub body: String,
pub base: String,
}Expand description
GitHub pull-request metadata. Appears as an entry in optional
RepositoryView::branch_prs.
Populated by branch-aware commands when the current branch has been pushed and the
GitHub API resolves one or more PRs against it; absent on local-only branches or when
the lookup fails. Field presence for the branch_prs[].* paths is tracked per
ADR-0013.
Fields§
§number: u64PR number.
title: StringPR title.
state: StringPR state (open, closed, merged).
url: StringPR URL.
body: StringPR description/body content.
base: StringBase branch the PR targets.
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§fn clone(&self) -> PullRequest
fn clone(&self) -> PullRequest
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 PullRequest
impl Debug for PullRequest
Source§impl<'de> Deserialize<'de> for PullRequest
impl<'de> Deserialize<'de> for PullRequest
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 PullRequest
impl RefUnwindSafe for PullRequest
impl Send for PullRequest
impl Sync for PullRequest
impl Unpin for PullRequest
impl UnsafeUnpin for PullRequest
impl UnwindSafe for PullRequest
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