pub struct PullRequest {Show 34 fields
pub additions: i64,
pub allow_maintainer_edit: bool,
pub assignees: Option<Vec<User>>,
pub base: PrBranchInfo,
pub body: String,
pub changed_files: i64,
pub closed_at: Option<String>,
pub comments: i64,
pub created_at: String,
pub deletions: i64,
pub diff_url: String,
pub draft: bool,
pub due_date: Option<String>,
pub head: PrBranchInfo,
pub html_url: String,
pub id: i64,
pub is_locked: bool,
pub labels: Vec<Label>,
pub merge_base: String,
pub merge_commit_sha: Option<String>,
pub mergeable: bool,
pub merged: bool,
pub merged_at: Option<String>,
pub merged_by: Option<User>,
pub number: i64,
pub patch_url: String,
pub pin_order: i64,
pub requested_reviewers: Option<Vec<Option<User>>>,
pub review_comments: i64,
pub state: StateType,
pub title: String,
pub updated_at: String,
pub url: String,
pub user: User,
}
Fields§
§additions: i64
§allow_maintainer_edit: bool
§assignees: Option<Vec<User>>
§base: PrBranchInfo
§body: String
§changed_files: i64
§closed_at: Option<String>
§comments: i64
§created_at: String
§deletions: i64
§diff_url: String
§draft: bool
§due_date: Option<String>
§head: PrBranchInfo
§html_url: String
§id: i64
§is_locked: bool
§labels: Vec<Label>
§merge_base: String
§merge_commit_sha: Option<String>
§mergeable: bool
§merged: bool
§merged_at: Option<String>
§merged_by: Option<User>
§number: i64
§patch_url: String
§pin_order: i64
§requested_reviewers: Option<Vec<Option<User>>>
§review_comments: i64
Number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR)
state: StateType
§title: String
§updated_at: String
§url: String
§user: User
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§const fn clone_from(&mut self, source: &Self)
const 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 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