#[non_exhaustive]pub struct PullRequest {
pub number: u64,
pub title: String,
pub state: String,
pub head_ref_name: String,
pub base_ref_name: String,
pub url: String,
}Expand description
A pull request (gh pr list/view --json number,title,state,headRefName,baseRefName,url).
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.number: u64PR number.
title: StringPR title.
state: StringState, e.g. "OPEN", "MERGED", "CLOSED".
head_ref_name: StringSource (head) branch name.
base_ref_name: StringTarget (base) branch name.
url: StringWeb URL.
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<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 PartialEq for PullRequest
impl PartialEq for PullRequest
Source§fn eq(&self, other: &PullRequest) -> bool
fn eq(&self, other: &PullRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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 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