pub struct RoadmapSources<'a> {
pub issues: &'a [Issue],
pub projects: ProjectIndex,
pub epics: EpicIndex,
pub health: HealthIndex,
pub policy: HealthPolicy,
pub consumed: RoadmapConsumed,
}Expand description
The shared snapshots a projection joins against, built once per read.
The three indices are each built in one pass over the issue set, so no row re-reads the store; the consumed facts come from their owners. The projection stores nothing and the snapshot is a value the caller drops when it is done.
Fields§
§issues: &'a [Issue]The issue set the indices were built from, retained so the relationship graph for epic rollups is built once here rather than per row.
projects: ProjectIndexThe project index (#178).
epics: EpicIndexThe epic index (#179).
health: HealthIndexThe health index (#177).
policy: HealthPolicyThe health policy in force, whose version every risk reading reports.
consumed: RoadmapConsumedThe facts consumed from the planning and relationship services.
Implementations§
Source§impl<'a> RoadmapSources<'a>
impl<'a> RoadmapSources<'a>
Sourcepub fn new(
config: &Config,
issues: &'a [Issue],
policy: &HealthPolicy,
consumed: RoadmapConsumed,
) -> Self
pub fn new( config: &Config, issues: &'a [Issue], policy: &HealthPolicy, consumed: RoadmapConsumed, ) -> Self
Build the source snapshot in one pass over issues.
The declared cycles and milestones the health index needs come from the
registries the caller already resolved (RoadmapConsumed::targets); the
index flags a member naming anything else, which the join forwards as source
diagnostics.
Trait Implementations§
Source§impl<'a> Clone for RoadmapSources<'a>
impl<'a> Clone for RoadmapSources<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoadmapSources<'a>
impl<'a> RefUnwindSafe for RoadmapSources<'a>
impl<'a> Send for RoadmapSources<'a>
impl<'a> Sync for RoadmapSources<'a>
impl<'a> Unpin for RoadmapSources<'a>
impl<'a> UnsafeUnpin for RoadmapSources<'a>
impl<'a> UnwindSafe for RoadmapSources<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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