iteration

The 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

source

pub struct Model

A 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

source

pub fn status(&self) -> IterationStatus

Current lifecycle status.

Parameter Type Description
returns IterationStatus

Model::completed_at

source

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

source

pub fn created_at(&self) -> &DateTime<Utc>

When the iteration was first created.

Parameter Type Description
returns &DateTime<Utc>

Model::description

source

pub fn description(&self) -> &String

Longer-form description of the iteration’s goals.

Parameter Type Description
returns &String

Model::id

source

pub fn id(&self) -> &Id

Stable identifier assigned at creation.

Parameter Type Description
returns &Id

Model::metadata

source

pub fn metadata(&self) -> &Value

Free-form JSON object for user-defined metadata.

Parameter Type Description
returns &Value

Model::project_id

source

pub fn project_id(&self) -> &Id

Project this iteration belongs to.

Parameter Type Description
returns &Id

Model::title

source

pub fn title(&self) -> &String

Short human-readable title.

Parameter Type Description
returns &String

Model::updated_at

source

pub fn updated_at(&self) -> &DateTime<Utc>

When the iteration was last modified.

Parameter Type Description
returns &DateTime<Utc>

struct New

source

pub struct New

Parameters 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

source

pub struct Patch

Optional 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

source

pub struct Filter

Criteria 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

source

pub fn all() -> Self

Construct 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.