Skip to main content

RoadmapSources

Struct RoadmapSources 

Source
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: ProjectIndex

The project index (#178).

§epics: EpicIndex

The epic index (#179).

§health: HealthIndex

The health index (#177).

§policy: HealthPolicy

The health policy in force, whose version every risk reading reports.

§consumed: RoadmapConsumed

The facts consumed from the planning and relationship services.

Implementations§

Source§

impl<'a> RoadmapSources<'a>

Source

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>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for RoadmapSources<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.