pub struct World {
pub project: Option<Project>,
pub tasks: BTreeMap<String, Task>,
pub status_changes: Vec<StatusChange>,
pub deps: BTreeMap<String, Dependency>,
pub claims: BTreeMap<String, Claim>,
pub comments: Vec<Comment>,
pub commit_facts: BTreeMap<String, CommitFact>,
pub ref_facts: BTreeMap<String, RefFact>,
}Expand description
Materialized state of one project’s event log.
Fields§
§project: Option<Project>§tasks: BTreeMap<String, Task>§status_changes: Vec<StatusChange>Sorted by (at, id).
deps: BTreeMap<String, Dependency>§claims: BTreeMap<String, Claim>Keyed by task_id (== Claim entity id); SET overwrite = newest wins.
comments: Vec<Comment>Sorted by (at, id).
commit_facts: BTreeMap<String, CommitFact>§ref_facts: BTreeMap<String, RefFact>Implementations§
Source§impl World
impl World
Sourcepub fn changes_for(&self, task_id: &str) -> Vec<&StatusChange>
pub fn changes_for(&self, task_id: &str) -> Vec<&StatusChange>
This task’s status changes, in (at, id) order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnsafeUnpin for World
impl UnwindSafe for World
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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