pub struct PullRequest12 {Show 48 fields
pub _links: Box<WebhooksPullRequest5Links>,
pub active_lock_reason: Option<ActiveLockReason>,
pub additions: Option<i32>,
pub assignee: Option<Box<User1>>,
pub assignees: Vec<User1>,
pub author_association: AuthorAssociation,
pub auto_merge: Option<Box<PullRequestAutoMerge>>,
pub base: Box<PullRequestBase>,
pub body: Option<String>,
pub changed_files: Option<i32>,
pub closed_at: Option<String>,
pub comments: Option<i32>,
pub comments_url: String,
pub commits: Option<i32>,
pub commits_url: String,
pub created_at: String,
pub deletions: Option<i32>,
pub diff_url: String,
pub draft: bool,
pub head: Box<PullRequest12Head>,
pub html_url: String,
pub id: i32,
pub issue_url: String,
pub labels: Vec<Label>,
pub locked: bool,
pub maintainer_can_modify: Option<bool>,
pub merge_commit_sha: Option<String>,
pub mergeable: Option<Option<bool>>,
pub mergeable_state: Option<String>,
pub merged: Option<Option<bool>>,
pub merged_at: Option<String>,
pub merged_by: Option<Option<Box<User>>>,
pub milestone: Option<Box<Milestone>>,
pub node_id: String,
pub number: i32,
pub patch_url: String,
pub rebaseable: Option<Option<bool>>,
pub requested_reviewers: Vec<PullRequestRequestedReviewersInner>,
pub requested_teams: Vec<Team>,
pub review_comment_url: String,
pub review_comments: Option<i32>,
pub review_comments_url: String,
pub state: State,
pub statuses_url: String,
pub title: String,
pub updated_at: String,
pub url: String,
pub user: Option<Box<User1>>,
}
Fields§
§_links: Box<WebhooksPullRequest5Links>
§active_lock_reason: Option<ActiveLockReason>
§additions: Option<i32>
§assignee: Option<Box<User1>>
§assignees: Vec<User1>
How the author is associated with the repository.
auto_merge: Option<Box<PullRequestAutoMerge>>
§base: Box<PullRequestBase>
§body: Option<String>
§changed_files: Option<i32>
§closed_at: Option<String>
§comments: Option<i32>
§comments_url: String
§commits: Option<i32>
§commits_url: String
§created_at: String
§deletions: Option<i32>
§diff_url: String
§draft: bool
Indicates whether or not the pull request is a draft.
head: Box<PullRequest12Head>
§html_url: String
§id: i32
§issue_url: String
§labels: Vec<Label>
§locked: bool
§maintainer_can_modify: Option<bool>
Indicates whether maintainers can modify the pull request.
merge_commit_sha: Option<String>
§mergeable: Option<Option<bool>>
§mergeable_state: Option<String>
§merged: Option<Option<bool>>
§merged_at: Option<String>
§merged_by: Option<Option<Box<User>>>
§milestone: Option<Box<Milestone>>
§node_id: String
§number: i32
Number uniquely identifying the pull request within its repository.
patch_url: String
§rebaseable: Option<Option<bool>>
§requested_reviewers: Vec<PullRequestRequestedReviewersInner>
§requested_teams: Vec<Team>
§review_comment_url: String
§review_comments: Option<i32>
§review_comments_url: String
§state: State
State of this Pull Request. Either open
or closed
.
statuses_url: String
§title: String
The title of the pull request.
updated_at: String
§url: String
§user: Option<Box<User1>>
Implementations§
Source§impl PullRequest12
impl PullRequest12
pub fn new( _links: WebhooksPullRequest5Links, active_lock_reason: Option<ActiveLockReason>, assignee: Option<User1>, assignees: Vec<User1>, author_association: AuthorAssociation, auto_merge: Option<PullRequestAutoMerge>, base: PullRequestBase, body: Option<String>, closed_at: Option<String>, comments_url: String, commits_url: String, created_at: String, diff_url: String, draft: bool, head: PullRequest12Head, html_url: String, id: i32, issue_url: String, labels: Vec<Label>, locked: bool, merge_commit_sha: Option<String>, merged_at: Option<String>, milestone: Option<Milestone>, node_id: String, number: i32, patch_url: String, requested_reviewers: Vec<PullRequestRequestedReviewersInner>, requested_teams: Vec<Team>, review_comment_url: String, review_comments_url: String, state: State, statuses_url: String, title: String, updated_at: String, url: String, user: Option<User1>, ) -> PullRequest12
Trait Implementations§
Source§impl Clone for PullRequest12
impl Clone for PullRequest12
Source§fn clone(&self) -> PullRequest12
fn clone(&self) -> PullRequest12
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 PullRequest12
impl Debug for PullRequest12
Source§impl Default for PullRequest12
impl Default for PullRequest12
Source§fn default() -> PullRequest12
fn default() -> PullRequest12
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullRequest12
impl<'de> Deserialize<'de> for PullRequest12
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
Source§impl PartialEq for PullRequest12
impl PartialEq for PullRequest12
Source§impl Serialize for PullRequest12
impl Serialize for PullRequest12
impl StructuralPartialEq for PullRequest12
Auto Trait Implementations§
impl Freeze for PullRequest12
impl RefUnwindSafe for PullRequest12
impl Send for PullRequest12
impl Sync for PullRequest12
impl Unpin for PullRequest12
impl UnwindSafe for PullRequest12
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