Skip to main content

Module projects

Module projects 

Source
Expand description

Projects, project statuses, and project milestones.

Access through LinearClient::projects:

let client = linear_api::LinearClient::from_env()?;
let page = client
    .projects()
    .list(linear_api::projects::ListProjectsRequest::builder().build())
    .await?;
for project in &page.nodes {
    println!("{} ({:?})", project.name, project.status.status_type);
}

Naming note: Linear has both a mutation projectUpdate (updates a Project) and an entity type ProjectUpdate (a status post). This module implements the former as ProjectsService::update; status posts are out of scope here.

Structs§

ListProjectsRequest
Request parameters for ProjectsService::list / ProjectsService::list_stream. Serialized directly as the operation’s GraphQL variables.
ListProjectsRequestBuilder
Use builder syntax to set the inputs and finish with build().
Project
A Linear project.
ProjectCreateInput
Input for ProjectsService::create.
ProjectCreateInputBuilder
Use builder syntax to set the inputs and finish with build().
ProjectMilestone
A milestone within a project.
ProjectMilestoneCreateInput
Input for ProjectsService::create_milestone.
ProjectMilestoneCreateInputBuilder
Use builder syntax to set the inputs and finish with build().
ProjectMilestoneUpdateInput
Input for ProjectsService::update_milestone.
ProjectMilestoneUpdateInputBuilder
Use builder syntax to set the inputs and finish with build().
ProjectStatus
A workspace-level project status (the column a project sits in).
ProjectUpdateInput
Input for ProjectsService::update. All fields are optional; the Undefinable fields distinguish leave unchanged (default) from clear (Undefinable::Null) from set.
ProjectUpdateInputBuilder
Use builder syntax to set the inputs and finish with build().
ProjectsService
Service for projects, project statuses, and project milestones. Obtain via LinearClient::projects.