pub struct PullRequestBranch { /* private fields */ }
Expand description
Pull request branch reference
Pull requests have a base
branch against which they are opened, and a head
branch that
contains the changes that should be merged. The [PullRequest
] resource references these using
the PullRequestBranch
data type.
Implementations§
Source§impl PullRequestBranch
impl PullRequestBranch
Sourcepub fn repository(&self) -> &MinimalRepository
pub fn repository(&self) -> &MinimalRepository
Returns the repository in which the pull request was created.
Trait Implementations§
Source§impl Clone for PullRequestBranch
impl Clone for PullRequestBranch
Source§fn clone(&self) -> PullRequestBranch
fn clone(&self) -> PullRequestBranch
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 PullRequestBranch
impl Debug for PullRequestBranch
Source§impl<'de> Deserialize<'de> for PullRequestBranch
impl<'de> Deserialize<'de> for PullRequestBranch
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 PullRequestBranch
impl Display for PullRequestBranch
Source§impl Hash for PullRequestBranch
impl Hash for PullRequestBranch
Source§impl Ord for PullRequestBranch
impl Ord for PullRequestBranch
Source§fn cmp(&self, other: &PullRequestBranch) -> Ordering
fn cmp(&self, other: &PullRequestBranch) -> 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 PullRequestBranch
impl PartialEq for PullRequestBranch
Source§impl PartialOrd for PullRequestBranch
impl PartialOrd for PullRequestBranch
Source§impl Serialize for PullRequestBranch
impl Serialize for PullRequestBranch
impl Eq for PullRequestBranch
impl StructuralPartialEq for PullRequestBranch
Auto Trait Implementations§
impl Freeze for PullRequestBranch
impl RefUnwindSafe for PullRequestBranch
impl Send for PullRequestBranch
impl Sync for PullRequestBranch
impl Unpin for PullRequestBranch
impl UnwindSafe for PullRequestBranch
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.