pub struct LiveHead {
pub pull: String,
pub branch: Option<String>,
}Expand description
Where a pull request’s head stands right now, asked two ways.
GitHub moves a pull request to a pushed commit some time after the push,
usually seconds and sometimes minutes, and until then headRefOid and
refs/pull/N/head both name the commit before it. The branch itself moves
with the push. A look that trusted the pull request alone read the commit
before a push, and by the time it posted its verdict was two pushes old.
Fields§
§pull: StringThe head GitHub’s pull request names.
branch: Option<String>Where the branch is, for a branch in this repository. None for a fork,
whose branch origin does not have.
Implementations§
Trait Implementations§
impl Eq for LiveHead
impl StructuralPartialEq for LiveHead
Auto Trait Implementations§
impl Freeze for LiveHead
impl RefUnwindSafe for LiveHead
impl Send for LiveHead
impl Sync for LiveHead
impl Unpin for LiveHead
impl UnsafeUnpin for LiveHead
impl UnwindSafe for LiveHead
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> 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.