pub struct GitHubPull {Show 14 fields
pub number: i64,
pub title: String,
pub body: Option<String>,
pub state: String,
pub draft: bool,
pub user: GitHubUser,
pub labels: Vec<GitHubLabel>,
pub created_at: String,
pub updated_at: String,
pub closed_at: Option<String>,
pub merged_at: Option<String>,
pub html_url: String,
pub head: GitHubPullRef,
pub base: GitHubPullRef,
}Expand description
A pull request. GitHub’s issues endpoint returns these too, which is why they are filtered out of the issue list — a pull request is a different thing to a person looking at either list.
Fields§
§number: i64§title: String§body: Option<String>§state: Stringopen or closed. Merged is not a state GitHub reports here — a
merged pull request is closed with merged_at set — so a page that
wants to say “merged” reads that.
draft: bool§user: GitHubUser§labels: Vec<GitHubLabel>§created_at: String§updated_at: String§closed_at: Option<String>§merged_at: Option<String>§html_url: String§head: GitHubPullRef§base: GitHubPullRefTrait Implementations§
Source§impl Clone for GitHubPull
impl Clone for GitHubPull
Source§impl Debug for GitHubPull
impl Debug for GitHubPull
Source§impl<'de> Deserialize<'de> for GitHubPull
impl<'de> Deserialize<'de> for GitHubPull
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 GitHubPull
impl RefUnwindSafe for GitHubPull
impl Send for GitHubPull
impl Sync for GitHubPull
impl Unpin for GitHubPull
impl UnsafeUnpin for GitHubPull
impl UnwindSafe for GitHubPull
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