pub struct PrRevisions {
pub head: Option<String>,
pub commits: Vec<String>,
}Expand description
A tracked PR’s revisions, read from gh pr view --json headRefOid,commits:
the current head, and the commits the PR contains. The latter is what
answers “is the revision I reviewed still on this branch?” — a rework that
appends commits keeps it, and a force-push or rebase drops it.
Fields§
§head: Option<String>§commits: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for PrRevisions
impl Clone for PrRevisions
Source§fn clone(&self) -> PrRevisions
fn clone(&self) -> PrRevisions
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 PrRevisions
impl Debug for PrRevisions
Source§impl Default for PrRevisions
impl Default for PrRevisions
Source§fn default() -> PrRevisions
fn default() -> PrRevisions
Returns the “default value” for a type. Read more
impl Eq for PrRevisions
Source§impl PartialEq for PrRevisions
impl PartialEq for PrRevisions
impl StructuralPartialEq for PrRevisions
Auto Trait Implementations§
impl Freeze for PrRevisions
impl RefUnwindSafe for PrRevisions
impl Send for PrRevisions
impl Sync for PrRevisions
impl Unpin for PrRevisions
impl UnsafeUnpin for PrRevisions
impl UnwindSafe for PrRevisions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.