pub struct Found {
pub branches: Vec<String>,
pub requests: Vec<PullRequestSummary>,
pub notes: Vec<String>,
}Expand description
What the host (or a bot) made for an issue, as far as it could be told.
Fields§
§branches: Vec<String>Branch names (without a remote), the host’s links first.
requests: Vec<PullRequestSummary>Merge / pull requests tied to the issue by the host or by name.
notes: Vec<String>Sources that failed (a host without the endpoint, a 403): the rest still answered.
Implementations§
Source§impl Found
impl Found
Sourcepub fn best_branch(&self) -> Option<&str>
pub fn best_branch(&self) -> Option<&str>
The branch to pick up: the one of the newest live request, else the first branch found.
Sourcepub fn request_of(&self, branch: &str) -> Option<&PullRequestSummary>
pub fn request_of(&self, branch: &str) -> Option<&PullRequestSummary>
The request that has branch as its source: its target is the
branch’s parent.
Trait Implementations§
impl Eq for Found
impl StructuralPartialEq for Found
Auto Trait Implementations§
impl Forget for Found
impl Freeze for Foundwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<PullRequestSummary>: Freeze,
impl Move for Found
impl RefUnwindSafe for Found
impl Send for Foundwhere
RawVecInner: Send,
impl Sync for Foundwhere
RawVecInner: Sync,
impl Unpin for Found
impl UnsafeUnpin for Foundwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PullRequestSummary>: UnsafeUnpin,
impl UnwindSafe for Foundwhere
RawVecInner: UnwindSafe,
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§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.