#[non_exhaustive]pub struct ProjectUpdateInput {
pub name: Option<String>,
pub description: Option<String>,
pub status_id: Option<ProjectStatusId>,
pub priority: Option<Priority>,
pub team_ids: Option<Vec<TeamId>>,
pub content: Undefinable<String>,
pub lead_id: Undefinable<UserId>,
pub start_date: Undefinable<TimelessDate>,
pub target_date: Undefinable<TimelessDate>,
}Expand description
Input for ProjectsService::update. All fields are optional; the
Undefinable fields distinguish leave unchanged (default) from
clear (Undefinable::Null) from set.
use linear_api::Undefinable;
use linear_api::projects::ProjectUpdateInput;
let input = ProjectUpdateInput::builder()
.name("SDK v1 (renamed)".to_owned())
.lead_id(Undefinable::Null) // clear the lead
.build();
assert_eq!(input.lead_id, Undefinable::Null);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: Option<String>New project name.
description: Option<String>New short description.
status_id: Option<ProjectStatusId>New project status.
priority: Option<Priority>New project priority.
team_ids: Option<Vec<TeamId>>New set of teams.
content: Undefinable<String>Long-form markdown content.
Live-verified server quirk: Linear ignores both null and the
empty string for this document-backed field — neither
Undefinable::Null nor "" clears it; only non-empty values
update it.
lead_id: Undefinable<UserId>Project lead (clearable).
start_date: Undefinable<TimelessDate>Planned start date (clearable).
target_date: Undefinable<TimelessDate>Planned target date (clearable).
Implementations§
Source§impl ProjectUpdateInput
impl ProjectUpdateInput
Sourcepub fn builder() -> ProjectUpdateInputBuilder
pub fn builder() -> ProjectUpdateInputBuilder
Create an instance of ProjectUpdateInput using the builder syntax
Trait Implementations§
Source§impl Clone for ProjectUpdateInput
impl Clone for ProjectUpdateInput
Source§fn clone(&self) -> ProjectUpdateInput
fn clone(&self) -> ProjectUpdateInput
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 ProjectUpdateInput
impl Debug for ProjectUpdateInput
Source§impl Default for ProjectUpdateInput
impl Default for ProjectUpdateInput
Source§fn default() -> ProjectUpdateInput
fn default() -> ProjectUpdateInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectUpdateInput
impl RefUnwindSafe for ProjectUpdateInput
impl Send for ProjectUpdateInput
impl Sync for ProjectUpdateInput
impl Unpin for ProjectUpdateInput
impl UnsafeUnpin for ProjectUpdateInput
impl UnwindSafe for ProjectUpdateInput
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