#[non_exhaustive]pub struct ProjectCreateInput {
pub name: String,
pub team_ids: Vec<TeamId>,
pub description: Option<String>,
pub content: Option<String>,
pub status_id: Option<ProjectStatusId>,
pub lead_id: Option<UserId>,
pub member_ids: Option<Vec<UserId>>,
pub priority: Option<Priority>,
pub start_date: Option<TimelessDate>,
pub target_date: Option<TimelessDate>,
pub color: Option<String>,
pub icon: Option<String>,
}Expand description
Input for ProjectsService::create.
use linear_api::TeamId;
use linear_api::projects::ProjectCreateInput;
let input = ProjectCreateInput::builder()
.name("SDK v1".to_owned())
.team_ids(vec![TeamId::new("team-1")])
.target_date("2026-09-01".parse().unwrap())
.build();
assert_eq!(input.name, "SDK v1");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.name: StringProject name (required).
team_ids: Vec<TeamId>Teams the project belongs to (required).
description: Option<String>Short description.
content: Option<String>Long-form markdown content.
status_id: Option<ProjectStatusId>Initial project status.
lead_id: Option<UserId>Project lead.
member_ids: Option<Vec<UserId>>Project members.
priority: Option<Priority>Project priority.
start_date: Option<TimelessDate>Planned start date.
target_date: Option<TimelessDate>Planned target date.
color: Option<String>Icon color as a hex string.
icon: Option<String>Icon name.
Implementations§
Source§impl ProjectCreateInput
impl ProjectCreateInput
Sourcepub fn builder() -> ProjectCreateInputBuilder
pub fn builder() -> ProjectCreateInputBuilder
Create an instance of ProjectCreateInput using the builder syntax
Trait Implementations§
Source§impl Clone for ProjectCreateInput
impl Clone for ProjectCreateInput
Source§fn clone(&self) -> ProjectCreateInput
fn clone(&self) -> ProjectCreateInput
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 ProjectCreateInput
impl Debug for ProjectCreateInput
Auto Trait Implementations§
impl Freeze for ProjectCreateInput
impl RefUnwindSafe for ProjectCreateInput
impl Send for ProjectCreateInput
impl Sync for ProjectCreateInput
impl Unpin for ProjectCreateInput
impl UnsafeUnpin for ProjectCreateInput
impl UnwindSafe for ProjectCreateInput
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