Struct octocrab::models::pulls::PullRequest
source · #[non_exhaustive]pub struct PullRequest {Show 48 fields
pub url: String,
pub id: PullRequestId,
pub node_id: Option<String>,
pub html_url: Option<Url>,
pub diff_url: Option<Url>,
pub patch_url: Option<Url>,
pub issue_url: Option<Url>,
pub commits_url: Option<Url>,
pub review_comments_url: Option<Url>,
pub review_comment_url: Option<Url>,
pub comments_url: Option<Url>,
pub statuses_url: Option<Url>,
pub number: u64,
pub state: Option<IssueState>,
pub locked: bool,
pub maintainer_can_modify: bool,
pub title: Option<String>,
pub user: Option<Box<Author>>,
pub body: Option<String>,
pub body_text: Option<String>,
pub body_html: Option<String>,
pub labels: Option<Vec<Label>>,
pub milestone: Option<Box<Milestone>>,
pub active_lock_reason: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub closed_at: Option<DateTime<Utc>>,
pub mergeable: Option<bool>,
pub mergeable_state: Option<MergeableState>,
pub merged_at: Option<DateTime<Utc>>,
pub merge_commit_sha: Option<String>,
pub assignee: Option<Box<Author>>,
pub assignees: Option<Vec<Author>>,
pub requested_reviewers: Option<Vec<Author>>,
pub requested_teams: Option<Vec<RequestedTeam>>,
pub rebaseable: Option<bool>,
pub head: Box<Head>,
pub base: Box<Base>,
pub links: Option<Box<Links>>,
pub author_association: Option<AuthorAssociation>,
pub draft: Option<bool>,
pub repo: Option<Box<Repository>>,
pub additions: Option<u64>,
pub deletions: Option<u64>,
pub changed_files: Option<u64>,
pub commits: Option<u64>,
pub review_comments: Option<u64>,
pub comments: Option<u64>,
}
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.url: String
§id: PullRequestId
§node_id: Option<String>
§html_url: Option<Url>
§diff_url: Option<Url>
§patch_url: Option<Url>
§issue_url: Option<Url>
§commits_url: Option<Url>
§review_comments_url: Option<Url>
§review_comment_url: Option<Url>
§comments_url: Option<Url>
§statuses_url: Option<Url>
§number: u64
The pull request number. Note that GitHub’s REST API considers every pull-request an issue with the same number.
state: Option<IssueState>
§locked: bool
§maintainer_can_modify: bool
§title: Option<String>
§user: Option<Box<Author>>
§body: Option<String>
§body_text: Option<String>
§body_html: Option<String>
§labels: Option<Vec<Label>>
§milestone: Option<Box<Milestone>>
§active_lock_reason: Option<String>
§created_at: Option<DateTime<Utc>>
§updated_at: Option<DateTime<Utc>>
§closed_at: Option<DateTime<Utc>>
§mergeable: Option<bool>
§mergeable_state: Option<MergeableState>
§merged_at: Option<DateTime<Utc>>
§merge_commit_sha: Option<String>
§assignee: Option<Box<Author>>
§assignees: Option<Vec<Author>>
§requested_reviewers: Option<Vec<Author>>
§requested_teams: Option<Vec<RequestedTeam>>
§rebaseable: Option<bool>
§head: Box<Head>
§base: Box<Base>
§links: Option<Box<Links>>
§draft: Option<bool>
§repo: Option<Box<Repository>>
§additions: Option<u64>
§deletions: Option<u64>
§changed_files: Option<u64>
§commits: Option<u64>
§review_comments: Option<u64>
§comments: Option<u64>
Trait Implementations§
source§impl Clone for PullRequest
impl Clone for PullRequest
source§fn clone(&self) -> PullRequest
fn clone(&self) -> PullRequest
Returns a copy 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
source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
source§fn eq(&self, other: &PullRequest) -> bool
fn eq(&self, other: &PullRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PullRequest
impl Serialize for PullRequest
impl StructuralPartialEq for PullRequest
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