#[non_exhaustive]pub struct PullRequest {Show 50 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: Option<bool>,
pub merged_at: Option<DateTime<Utc>>,
pub merged_by: Option<Box<Author>>,
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: u64The 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: Option<bool>§merged_at: Option<DateTime<Utc>>§merged_by: Option<Box<Author>>§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 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<PullRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PullRequest, <__D as Deserializer<'de>>::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§impl Serialize for PullRequest
impl Serialize for PullRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more