[][src]Struct octocrab::models::PullRequest

#[non_exhaustive]pub struct PullRequest {
    pub url: String,
    pub id: i64,
    pub node_id: String,
    pub html_url: Url,
    pub diff_url: Url,
    pub patch_url: Url,
    pub issue_url: Url,
    pub commits_url: Url,
    pub review_comments_url: Url,
    pub review_comment_url: Url,
    pub comments_url: Url,
    pub statuses_url: Url,
    pub number: i64,
    pub state: IssueState,
    pub locked: bool,
    pub title: String,
    pub user: User,
    pub body: Option<String>,
    pub body_text: Option<String>,
    pub body_html: Option<String>,
    pub labels: Option<Vec<Label>>,
    pub milestone: Option<Milestone>,
    pub active_lock_reason: Option<String>,
    pub created_at: DateTime<Utc>,
    pub updated_at: Option<DateTime<Utc>>,
    pub closed_at: Option<DateTime<Utc>>,
    pub mergeable: Option<bool>,
    pub merged_at: Option<String>,
    pub merge_commit_sha: Option<String>,
    pub assignee: Option<User>,
    pub assignees: Vec<User>,
    pub requested_reviewers: Vec<User>,
    pub requested_teams: Vec<RequestedTeam>,
    pub head: Head,
    pub base: Base,
    pub links: Option<Links>,
    pub author_association: String,
    pub draft: bool,
    pub repo: Option<Repository>,
}

Fields (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: Stringid: i64node_id: Stringhtml_url: Urldiff_url: Urlpatch_url: Urlissue_url: Urlcommits_url: Urlreview_comments_url: Urlreview_comment_url: Urlcomments_url: Urlstatuses_url: Urlnumber: i64state: IssueStatelocked: booltitle: Stringuser: Userbody: Option<String>body_text: Option<String>body_html: Option<String>labels: Option<Vec<Label>>milestone: Option<Milestone>active_lock_reason: Option<String>created_at: DateTime<Utc>updated_at: Option<DateTime<Utc>>closed_at: Option<DateTime<Utc>>mergeable: Option<bool>merged_at: Option<String>merge_commit_sha: Option<String>assignee: Option<User>assignees: Vec<User>requested_reviewers: Vec<User>requested_teams: Vec<RequestedTeam>head: Headbase: Baselinks: Option<Links>author_association: Stringdraft: boolrepo: Option<Repository>

Trait Implementations

impl Clone for PullRequest[src]

impl Debug for PullRequest[src]

impl<'de> Deserialize<'de> for PullRequest[src]

impl PartialEq<PullRequest> for PullRequest[src]

impl Serialize for PullRequest[src]

impl StructuralPartialEq for PullRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.