pub enum RouteOutcome {
Routed {
providers: BTreeMap<String, ProviderRoute>,
depends_on: Vec<DependencyEntry>,
reference_fetch_failures: Vec<ReferenceFetchFailure>,
},
Failed {
error: String,
reference_fetch_failures: Vec<ReferenceFetchFailure>,
},
}Expand description
What routing one issue produced.
Serialised untagged and flattened into IssueRoute, so a routed issue
carries providers/depends_on and a failed one carries error and any
citation fetch failures.
Variants§
Routed
Jev answered every stage for every ladder.
Fields
§
providers: BTreeMap<String, ProviderRoute>Each requested ladder’s routing, keyed by provider name.
§
depends_on: Vec<DependencyEntry>Open issues/PRs this issue’s text cites (#1812). About the issue,
not a provider, so it sits beside providers rather than inside.
§
reference_fetch_failures: Vec<ReferenceFetchFailure>Citations that could not be fetched. They are not dependencies because their state is unknown, but remain visible to the user.
Failed
The Jev call for this issue failed, or its answer was unusable. The other issues are still routed, so a long run keeps what it paid for.
Fields
§
reference_fetch_failures: Vec<ReferenceFetchFailure>Citations that could not be fetched before the Jev call failed.
Trait Implementations§
Source§impl Clone for RouteOutcome
impl Clone for RouteOutcome
Source§impl Debug for RouteOutcome
impl Debug for RouteOutcome
Source§impl PartialEq for RouteOutcome
impl PartialEq for RouteOutcome
Source§impl Serialize for RouteOutcome
impl Serialize for RouteOutcome
impl StructuralPartialEq for RouteOutcome
Auto Trait Implementations§
impl Freeze for RouteOutcome
impl RefUnwindSafe for RouteOutcome
impl Send for RouteOutcome
impl Sync for RouteOutcome
impl Unpin for RouteOutcome
impl UnsafeUnpin for RouteOutcome
impl UnwindSafe for RouteOutcome
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