pub struct Milestone {
pub name: String,
pub target_date: String,
pub description: String,
pub created: String,
pub updated: String,
pub file_name: String,
pub color: Option<String>,
}Expand description
A milestone as materialized from its registry file. description is the
markdown body (the work summary); file_name is the registry filename
({created}-{slug}.md, contracts/milestone-file-format.md). created
is the creation date (the filename prefix); target_date is the optional
YYYY-MM-DD due date (empty string when absent).
Fields§
§name: String§target_date: String§description: String§created: String§updated: String§file_name: String§color: Option<String>An optional color name for the milestone (tix #1530), from the record’s
color: field. A milestone with none renders uncolored.
Trait Implementations§
impl Eq for Milestone
impl StructuralPartialEq for Milestone
Auto Trait Implementations§
impl Freeze for Milestone
impl RefUnwindSafe for Milestone
impl Send for Milestone
impl Sync for Milestone
impl Unpin for Milestone
impl UnsafeUnpin for Milestone
impl UnwindSafe for Milestone
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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