pub struct RoadmapEntry<'a> {
pub id: &'a str,
pub initiative: &'a InitiativeConfiguration,
pub target_date: TargetDateState<'a>,
}Expand description
One initiative selected for the roadmap, with its stable id and ordering state.
Deliberately a view: it borrows the registry record rather than copying it, and it resolves the target-date state once (at construction) so sorting never re-inspects the record. The projection (WP03) owns the displayable row; this is the filter/order layer’s input to it.
Fields§
§id: &'a strThe stable initiative id (the registry key), never the display name.
initiative: &'a InitiativeConfigurationThe registry record this entry refers to.
target_date: TargetDateState<'a>The explicit target-date ordering state, computed once.
Implementations§
Source§impl<'a> RoadmapEntry<'a>
impl<'a> RoadmapEntry<'a>
Sourcepub fn new(id: &'a str, initiative: &'a InitiativeConfiguration) -> Self
pub fn new(id: &'a str, initiative: &'a InitiativeConfiguration) -> Self
Build an entry for initiative, resolving its target-date state.
Trait Implementations§
Source§impl<'a> Clone for RoadmapEntry<'a>
impl<'a> Clone for RoadmapEntry<'a>
impl<'a> Copy for RoadmapEntry<'a>
Source§impl<'a> Debug for RoadmapEntry<'a>
impl<'a> Debug for RoadmapEntry<'a>
Source§impl<'a> PartialEq for RoadmapEntry<'a>
impl<'a> PartialEq for RoadmapEntry<'a>
impl<'a> StructuralPartialEq for RoadmapEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoadmapEntry<'a>
impl<'a> RefUnwindSafe for RoadmapEntry<'a>
impl<'a> Send for RoadmapEntry<'a>
impl<'a> Sync for RoadmapEntry<'a>
impl<'a> Unpin for RoadmapEntry<'a>
impl<'a> UnsafeUnpin for RoadmapEntry<'a>
impl<'a> UnwindSafe for RoadmapEntry<'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
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> 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