pub struct PullRequest {Show 34 fields
pub id: u64,
pub url: String,
pub html_url: String,
pub diff_url: String,
pub patch_url: String,
pub issue_url: String,
pub commits_url: String,
pub review_comments_url: String,
pub review_comment_url: String,
pub comments_url: String,
pub statuses_url: String,
pub number: u64,
pub state: String,
pub title: String,
pub body: Option<String>,
pub created_at: DateTime,
pub updated_at: DateTime,
pub closed_at: Option<DateTime>,
pub merged_at: Option<DateTime>,
pub head: ShortCommit,
pub base: ShortCommit,
pub user: User,
pub assignee: Option<User>,
pub assignees: Vec<User>,
pub merge_commit_sha: Option<String>,
pub merged: bool,
pub mergeable: Option<bool>,
pub merged_by: Option<User>,
pub comments: Option<u64>,
pub commits: Option<u64>,
pub additions: Option<u64>,
pub deletions: Option<u64>,
pub changed_files: Option<u64>,
pub labels: Vec<Label>,
}
Fields§
§id: u64
§url: String
§html_url: String
§diff_url: String
§patch_url: String
§issue_url: String
§commits_url: String
§review_comments_url: String
§review_comment_url: String
§comments_url: String
§statuses_url: String
§number: u64
§state: String
§title: String
§body: Option<String>
§created_at: DateTime
§updated_at: DateTime
§closed_at: Option<DateTime>
§merged_at: Option<DateTime>
§head: ShortCommit
§base: ShortCommit
§user: User
§assignee: Option<User>
§assignees: Vec<User>
§merge_commit_sha: Option<String>
§merged: bool
§mergeable: Option<bool>
§merged_by: Option<User>
§comments: Option<u64>
§commits: Option<u64>
§additions: Option<u64>
§deletions: Option<u64>
§changed_files: Option<u64>
§labels: Vec<Label>
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 Hash for PullRequest
impl Hash for PullRequest
Source§impl Ord for PullRequest
impl Ord for PullRequest
Source§fn cmp(&self, other: &PullRequest) -> Ordering
fn cmp(&self, other: &PullRequest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
Source§impl PartialOrd for PullRequest
impl PartialOrd for PullRequest
impl Eq 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