pub struct TaskSnapshot {Show 16 fields
pub id: Id,
pub title: String,
pub status: Status,
pub notes: Option<String>,
pub due_date: Option<Due>,
pub eta_minutes: Option<Duration>,
pub time_spent_minutes: Duration,
pub tags: BTreeSet<String>,
pub assignments: Vec<Assignment>,
pub recurrence: Option<Recurrence>,
pub issue_ref: Option<IssueRef>,
pub time_log: BTreeMap<Date, Duration>,
pub archived: bool,
pub attachments: Vec<Attachment>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}Expand description
A read-only view of a task assembled from its components — for query results,
export, and as the return of a mutation. Never fed back to decide/apply
(those work capability-keyed via the store); assembling here is one-way, so
there is no partial-aggregate to reconcile. Decomposed back to components by
Services::write_snapshot on import.
Fields§
§id: Id§title: String§status: Status§notes: Option<String>§due_date: Option<Due>§eta_minutes: Option<Duration>§time_spent_minutes: Duration§assignments: Vec<Assignment>§recurrence: Option<Recurrence>§issue_ref: Option<IssueRef>§time_log: BTreeMap<Date, Duration>§archived: bool§attachments: Vec<Attachment>§created_at: Timestamp§updated_at: TimestampTrait Implementations§
Source§impl Clone for TaskSnapshot
impl Clone for TaskSnapshot
Source§fn clone(&self) -> TaskSnapshot
fn clone(&self) -> TaskSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskSnapshot
impl Debug for TaskSnapshot
Source§impl<'de> Deserialize<'de> for TaskSnapshot
impl<'de> Deserialize<'de> for TaskSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TaskSnapshot
impl PartialEq for TaskSnapshot
Source§fn eq(&self, other: &TaskSnapshot) -> bool
fn eq(&self, other: &TaskSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskSnapshot
impl Serialize for TaskSnapshot
impl StructuralPartialEq for TaskSnapshot
Auto Trait Implementations§
impl Freeze for TaskSnapshot
impl RefUnwindSafe for TaskSnapshot
impl Send for TaskSnapshot
impl Sync for TaskSnapshot
impl Unpin for TaskSnapshot
impl UnsafeUnpin for TaskSnapshot
impl UnwindSafe for TaskSnapshot
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