pub struct PullRequest {Show 22 fields
pub id: u64,
pub node_id: String,
pub number: u64,
pub title: String,
pub body: Option<String>,
pub state: String,
pub user: IssueUser,
pub head: PullRequestBranch,
pub base: PullRequestBranch,
pub draft: bool,
pub merged: bool,
pub mergeable: Option<bool>,
pub merge_commit_sha: Option<String>,
pub assignees: Vec<IssueUser>,
pub requested_reviewers: Vec<IssueUser>,
pub labels: Vec<Label>,
pub milestone: Option<Milestone>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub closed_at: Option<DateTime<Utc>>,
pub merged_at: Option<DateTime<Utc>>,
pub html_url: String,
}Expand description
GitHub pull request.
Represents a pull request with all its metadata.
See docs/spec/interfaces/pull-request-operations.md
Fields§
§id: u64Unique pull request identifier
node_id: StringNode ID for GraphQL API
number: u64Pull request number (repository-specific)
title: StringPull request title
body: Option<String>Pull request body content (Markdown)
state: StringPull request state
user: IssueUserUser who created the pull request
head: PullRequestBranchHead branch information
base: PullRequestBranchBase branch information
draft: boolWhether the pull request is a draft
merged: boolWhether the pull request is merged
mergeable: Option<bool>Whether the pull request is mergeable
merge_commit_sha: Option<String>Merge commit SHA (if merged)
assignees: Vec<IssueUser>Assigned users
requested_reviewers: Vec<IssueUser>Requested reviewers
labels: Vec<Label>Applied labels
milestone: Option<Milestone>Milestone
created_at: DateTime<Utc>Creation timestamp
updated_at: DateTime<Utc>Last update timestamp
closed_at: Option<DateTime<Utc>>Close timestamp
merged_at: Option<DateTime<Utc>>Merge timestamp
html_url: StringPull request URL
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 · 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