pub struct PullRequest { /* private fields */ }
Expand description
Pull request
Pull requests are a feature of GitHub to merge two branches. Users can create, review, and merge
pull requests using GitHub’s platform. Each pull request has a unique id
, a human-readable
number
, and references to the two branches.
Implementations§
Source§impl PullRequest
impl PullRequest
Sourcepub fn id(&self) -> PullRequestId
pub fn id(&self) -> PullRequestId
Returns the pull request’s id.
Sourcepub fn number(&self) -> PullRequestNumber
pub fn number(&self) -> PullRequestNumber
Returns the pull request’s number.
Sourcepub fn head(&self) -> &PullRequestBranch
pub fn head(&self) -> &PullRequestBranch
Returns the pull request’s head branch
Sourcepub fn base(&self) -> &PullRequestBranch
pub fn base(&self) -> &PullRequestBranch
Returns the pull request’s base branch
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 · 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 Display for PullRequest
impl Display for PullRequest
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
Source§impl Serialize for PullRequest
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.