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 Found
impl Move for Found
impl RefUnwindSafe for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnsafeUnpin for Found
impl UnwindSafe for Found
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.