iteration
iterations table: time-boxed groups of tasks within a project.Model is one row. New, Patch and Filter carry the input of a create, an update and a list.
struct Model
pub struct ModelA time-boxed collection of tasks within a project.
| Field | Type | Description |
|---|---|---|
completed_at |
Option<DateTime<Utc>> | When the iteration entered a terminal status, or None while still active. |
created_at |
DateTime<Utc> | When the iteration was first created. |
description |
String | Longer-form description of the iteration’s goals. |
id |
Id | Stable identifier assigned at creation. |
metadata |
Value | Free-form JSON object for user-defined metadata. |
project_id |
Id | Project this iteration belongs to. |
status |
IterationStatus | Current lifecycle status. |
title |
String | Short human-readable title. |
updated_at |
DateTime<Utc> | When the iteration was last modified. |
Implements Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, TryFrom<Row>.
Model::status
pub fn status(&self) -> IterationStatusCurrent lifecycle status.
| Parameter | Type | Description |
|---|---|---|
| returns | IterationStatus |
Model::completed_at
pub fn completed_at(&self) -> &Option<DateTime<Utc>>When the iteration entered a terminal status, or None while still active.
| Parameter | Type | Description |
|---|---|---|
| returns | &Option<DateTime<Utc>> |
Model::created_at
pub fn created_at(&self) -> &DateTime<Utc>When the iteration was first created.
| Parameter | Type | Description |
|---|---|---|
| returns | &DateTime<Utc> |
Model::description
pub fn description(&self) -> &StringLonger-form description of the iteration’s goals.
| Parameter | Type | Description |
|---|---|---|
| returns | &String |
Model::id
pub fn id(&self) -> &IdStable identifier assigned at creation.
| Parameter | Type | Description |
|---|---|---|
| returns | &Id |
Model::metadata
pub fn metadata(&self) -> &ValueFree-form JSON object for user-defined metadata.
| Parameter | Type | Description |
|---|---|---|
| returns | &Value |
Model::project_id
pub fn project_id(&self) -> &IdProject this iteration belongs to.
| Parameter | Type | Description |
|---|---|---|
| returns | &Id |
Model::title
pub fn title(&self) -> &StringShort human-readable title.
| Parameter | Type | Description |
|---|---|---|
| returns | &String |
Model::updated_at
pub fn updated_at(&self) -> &DateTime<Utc>When the iteration was last modified.
| Parameter | Type | Description |
|---|---|---|
| returns | &DateTime<Utc> |
struct New
pub struct NewParameters for creating a new iteration.
| Field | Type | Description |
|---|---|---|
description |
String | Longer-form description of the iteration’s goals. |
metadata |
Option<Value> | Optional user-defined metadata merged into the new row. |
title |
String | Short human-readable title. |
Implements Clone, Debug, Default, Deserialize<'de>, Serialize.
struct Patch
pub struct PatchOptional fields for updating an existing iteration.
| Field | Type | Description |
|---|---|---|
description |
Option<String> | Replacement description. |
metadata |
Option<Value> | Replacement metadata object; overwrites the stored value when set. |
status |
Option<IterationStatus> | New lifecycle status; transitions to terminal states also set completed_at. |
title |
Option<String> | Replacement title. |
Implements Clone, Debug, Default, Deserialize<'de>, Serialize.
struct Filter
pub struct FilterCriteria for filtering iterations.
| Field | Type | Description |
|---|---|---|
all |
bool | Include iterations in every status, even terminal ones. |
has_available |
bool | Restrict to iterations that still contain at least one open task. |
status |
Option<IterationStatus> | Restrict to iterations in this status. |
tag |
Option<String> | Restrict to iterations carrying this tag label. |
Implements Clone, Debug, Default.
Filter::all
pub fn all() -> SelfConstruct a filter that includes iterations in every status, including terminal ones.
| Parameter | Type | Description |
|---|---|---|
| returns | Self | A filter with all set and every other criterion unset. |