pub struct Doc {
pub id: i64,
pub project_id: i64,
pub repo_id: Option<i64>,
pub title: Option<String>,
pub location: String,
pub created_at: String,
}Expand description
A plan or design document a project’s work derives from (DESIGN.md §3), and the thing tasks link to so “which tasks came from this plan?” is a query rather than a grep over task bodies. Owned by one project — which is where a relative location resolves — but linkable from a task in any project, since one plan routinely spawns work across several.
Fields§
§id: i64§project_id: i64§repo_id: Option<i64>Which of the project’s checkouts a relative location resolves against,
or None for the project’s default — the same shape as Task::repo_id.
Always None for a URL or an absolute path, which resolve unaided.
title: Option<String>An operator-supplied label, or None to read as the location itself.
location: StringA checkout-relative path (preferred, so it survives a checkout move), an absolute path outside every checkout, or a URL.
created_at: StringImplementations§
Trait Implementations§
impl Eq for Doc
impl StructuralPartialEq for Doc
Auto Trait Implementations§
impl Freeze for Doc
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnsafeUnpin for Doc
impl UnwindSafe for Doc
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> 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§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.