pub struct Source {
pub label: String,
pub name: String,
pub items: Vec<String>,
pub keys: Vec<(String, u64)>,
pub text: String,
}Expand description
One cited source: a cited issue plus the pull requests that closed it, or a standalone cited pull request.
Matches the grouping validated in #1779’s per-statement experiment
(E4), whose SOURCES names each key as exactly this pairing.
Fields§
§label: StringHow a statement’s cites string names this source, e.g. "#1614".
name: StringThe full display name, e.g. "#1614 and PR #1629".
items: Vec<String>Display label for every item making up this source.
keys: Vec<(String, u64)>Every (project, number) that resolves to this source: the issue
itself (or the standalone PR) plus any merged-in closing PRs.
text: StringThe source text, in the tested ## SOURCE: ... format, untruncated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more