#[non_exhaustive]pub struct IssueCreateInput {Show 17 fields
pub team_id: TeamId,
pub title: String,
pub description: Option<String>,
pub assignee_id: Option<UserId>,
pub state_id: Option<WorkflowStateId>,
pub priority: Option<Priority>,
pub estimate: Option<i64>,
pub label_ids: Option<Vec<LabelId>>,
pub project_id: Option<ProjectId>,
pub project_milestone_id: Option<ProjectMilestoneId>,
pub cycle_id: Option<CycleId>,
pub parent_id: Option<IssueId>,
pub due_date: Option<TimelessDate>,
pub sort_order: Option<f64>,
pub subscriber_ids: Option<Vec<UserId>>,
pub template_id: Option<TemplateId>,
pub create_as_user: Option<String>,
}Expand description
Input for IssuesService::create and IssuesService::batch_create.
team_id and title are required; unset optional fields are omitted from
the request.
use linear_api::issues::IssueCreateInput;
use linear_api::{Priority, TeamId};
let input = IssueCreateInput::builder()
.team_id(TeamId::new("team-1"))
.title("Fix the flux capacitor")
.priority(Priority::High)
.build();Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.team_id: TeamIdTeam to create the issue in (required).
title: StringIssue title (required).
description: Option<String>Description in markdown.
assignee_id: Option<UserId>Assignee.
state_id: Option<WorkflowStateId>Workflow state (defaults to the team’s first state).
priority: Option<Priority>Priority.
estimate: Option<i64>Estimate in the team’s chosen scale.
label_ids: Option<Vec<LabelId>>Labels to attach.
project_id: Option<ProjectId>Project to place the issue in.
project_milestone_id: Option<ProjectMilestoneId>Project milestone to slot the issue into.
cycle_id: Option<CycleId>Cycle to schedule the issue into.
parent_id: Option<IssueId>Parent issue (makes this a sub-issue).
due_date: Option<TimelessDate>Due date.
sort_order: Option<f64>Board sort order.
subscriber_ids: Option<Vec<UserId>>Users to subscribe to the issue.
template_id: Option<TemplateId>Template to apply.
create_as_user: Option<String>Display name to create the issue as (app credentials only).
Implementations§
Source§impl IssueCreateInput
impl IssueCreateInput
Sourcepub fn builder() -> IssueCreateInputBuilder
pub fn builder() -> IssueCreateInputBuilder
Create an instance of IssueCreateInput using the builder syntax
Trait Implementations§
Source§impl Clone for IssueCreateInput
impl Clone for IssueCreateInput
Source§fn clone(&self) -> IssueCreateInput
fn clone(&self) -> IssueCreateInput
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 IssueCreateInput
impl Debug for IssueCreateInput
Auto Trait Implementations§
impl Freeze for IssueCreateInput
impl RefUnwindSafe for IssueCreateInput
impl Send for IssueCreateInput
impl Sync for IssueCreateInput
impl Unpin for IssueCreateInput
impl UnsafeUnpin for IssueCreateInput
impl UnwindSafe for IssueCreateInput
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