pub struct GitPrInfo {
pub number: u64,
pub url: String,
pub draft: bool,
}Expand description
Open pull request associated with the current branch. Populated
by the git-diff scanner via gh pr list --head <branch>; surfaces
in the Inspector pane’s GIT section as the PR #N row.
Fields§
§number: u64§url: String§draft: boolWhether GitHub reports it as a draft; an open PR is one or the other, and the row says which.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitPrInfo
impl<'de> Deserialize<'de> for GitPrInfo
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
impl Eq for GitPrInfo
impl StructuralPartialEq for GitPrInfo
Auto Trait Implementations§
impl Freeze for GitPrInfo
impl RefUnwindSafe for GitPrInfo
impl Send for GitPrInfo
impl Sync for GitPrInfo
impl Unpin for GitPrInfo
impl UnsafeUnpin for GitPrInfo
impl UnwindSafe for GitPrInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.