pub struct PullRequest {Show 20 fields
pub number: i64,
pub title: String,
pub state: PrState,
pub body: Option<String>,
pub html_url: String,
pub head: PrBranch,
pub base: PrBranch,
pub user: Option<UserBasic>,
pub draft: Option<bool>,
pub labels: Option<Vec<Label>>,
pub assignees: Option<Vec<UserAssignee>>,
pub testers: Option<Vec<UserAssignee>>,
pub milestone: Option<Milestone>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub merged_at: Option<String>,
pub closed_at: Option<String>,
pub mergeable: Option<bool>,
pub merged: Option<bool>,
pub files: Option<Vec<FileDiff>>,
}Fields§
§number: i64§title: String§state: PrState§body: Option<String>§html_url: String§head: PrBranch§base: PrBranch§user: Option<UserBasic>§draft: Option<bool>§labels: Option<Vec<Label>>§assignees: Option<Vec<UserAssignee>>§testers: Option<Vec<UserAssignee>>§milestone: Option<Milestone>§created_at: Option<String>§updated_at: Option<String>§merged_at: Option<String>§closed_at: Option<String>§mergeable: Option<bool>§merged: Option<bool>Set by pr view via GET …/pulls/{n}/merge (not from pull payload).
files: Option<Vec<FileDiff>>Per-file diff list. Not returned by GET /repos/.../pulls/{n} —
populated by pr view via the separate /pulls/{n}/files endpoint.
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 Default for PullRequest
impl Default for PullRequest
Source§fn default() -> PullRequest
fn default() -> PullRequest
Returns the “default value” for a type. Read more
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
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