#[non_exhaustive]pub struct IssueUpdateInput {Show 15 fields
pub title: Option<String>,
pub state_id: Option<WorkflowStateId>,
pub priority: Option<Priority>,
pub sort_order: Option<f64>,
pub label_ids: Option<Vec<LabelId>>,
pub added_label_ids: Option<Vec<LabelId>>,
pub removed_label_ids: Option<Vec<LabelId>>,
pub description: Undefinable<String>,
pub assignee_id: Undefinable<UserId>,
pub estimate: Undefinable<i64>,
pub project_id: Undefinable<ProjectId>,
pub project_milestone_id: Undefinable<ProjectMilestoneId>,
pub cycle_id: Undefinable<CycleId>,
pub parent_id: Undefinable<IssueId>,
pub due_date: Undefinable<TimelessDate>,
}Expand description
Input for IssuesService::update. Every field is optional.
Plain Option fields are set-only; Undefinable fields are
tri-state: leave them Undefinable::Undefined (the default) to keep the
current value, set Undefinable::Null to clear it, or a value to
change it.
For labels, prefer added_label_ids /
removed_label_ids over replacing the whole
set with label_ids — the delta form cannot clobber
labels added concurrently by someone else.
use linear_api::Undefinable;
use linear_api::issues::IssueUpdateInput;
// Set the estimate, clear the assignee, leave everything else unchanged.
let input = IssueUpdateInput::builder()
.estimate(3)
.assignee_id(Undefinable::Null)
.build();Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>New title.
state_id: Option<WorkflowStateId>New workflow state.
priority: Option<Priority>New priority.
sort_order: Option<f64>New board sort order.
label_ids: Option<Vec<LabelId>>Replace the full label set. Prefer
added_label_ids /
removed_label_ids.
added_label_ids: Option<Vec<LabelId>>Labels to add, keeping existing ones.
removed_label_ids: Option<Vec<LabelId>>Labels to remove, keeping the rest.
description: Undefinable<String>Description in markdown.
Live-verified server quirk: Linear ignores null for this
document-backed field — Undefinable::Null is a no-op here. To
clear the description, set it to an empty string.
assignee_id: Undefinable<UserId>Assignee (Undefinable::Null unassigns).
estimate: Undefinable<i64>Estimate (Undefinable::Null clears it).
project_id: Undefinable<ProjectId>Project (Undefinable::Null removes the issue from its project).
project_milestone_id: Undefinable<ProjectMilestoneId>Project milestone (Undefinable::Null clears it).
cycle_id: Undefinable<CycleId>Cycle (Undefinable::Null removes the issue from its cycle).
parent_id: Undefinable<IssueId>Parent issue (Undefinable::Null promotes it to a top-level issue).
due_date: Undefinable<TimelessDate>Due date (Undefinable::Null clears it).
Implementations§
Source§impl IssueUpdateInput
impl IssueUpdateInput
Sourcepub fn builder() -> IssueUpdateInputBuilder
pub fn builder() -> IssueUpdateInputBuilder
Create an instance of IssueUpdateInput using the builder syntax
Trait Implementations§
Source§impl Clone for IssueUpdateInput
impl Clone for IssueUpdateInput
Source§fn clone(&self) -> IssueUpdateInput
fn clone(&self) -> IssueUpdateInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more