pub struct Project {
pub id: ProjectId,
pub name: String,
pub description: Option<String>,
pub status: Option<String>,
pub lead: Option<String>,
pub start_date: Option<String>,
pub due_date: Option<String>,
pub members: Vec<MemberRef>,
pub member_count: usize,
}Expand description
The service-side view of a project (data-model §2).
Combines the registry record with the derived members. Registry-only
operations (create_project, edit_project) return it with an empty
member list — there is no issue set to derive from — while index-backed
operations (resolve, list_projects) fill it.
Fields§
§id: ProjectIdThe stable registry key; the identity that survives a rename (C-002).
name: StringThe mutable display label; never the identity.
description: Option<String>Optional long-form context.
status: Option<String>Optional project status (free-form; not a board column).
lead: Option<String>Optional lead identity string.
start_date: Option<String>Optional start date (YYYY-MM-DD).
due_date: Option<String>Optional due date (YYYY-MM-DD).
members: Vec<MemberRef>Derived members, ordered by issue number. Never stored.
member_count: usizemembers.len(), carried because listings ask for it constantly.
Trait Implementations§
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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