#[non_exhaustive]pub struct ProjectMilestoneUpdateInput {
pub name: Option<String>,
pub sort_order: Option<f64>,
pub description: Undefinable<String>,
pub target_date: Undefinable<TimelessDate>,
}Expand description
Input for ProjectsService::update_milestone.
use linear_api::Undefinable;
use linear_api::projects::ProjectMilestoneUpdateInput;
let input = ProjectMilestoneUpdateInput::builder()
.target_date(Undefinable::Null) // clear the target date
.build();
assert_eq!(input.target_date, 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 milestone name.
sort_order: Option<f64>New sort order.
description: Undefinable<String>Milestone description.
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.
target_date: Undefinable<TimelessDate>Target date (clearable).
Implementations§
Source§impl ProjectMilestoneUpdateInput
impl ProjectMilestoneUpdateInput
Sourcepub fn builder() -> ProjectMilestoneUpdateInputBuilder
pub fn builder() -> ProjectMilestoneUpdateInputBuilder
Create an instance of ProjectMilestoneUpdateInput using the builder syntax
Trait Implementations§
Source§impl Clone for ProjectMilestoneUpdateInput
impl Clone for ProjectMilestoneUpdateInput
Source§fn clone(&self) -> ProjectMilestoneUpdateInput
fn clone(&self) -> ProjectMilestoneUpdateInput
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 ProjectMilestoneUpdateInput
impl Debug for ProjectMilestoneUpdateInput
Source§impl Default for ProjectMilestoneUpdateInput
impl Default for ProjectMilestoneUpdateInput
Source§fn default() -> ProjectMilestoneUpdateInput
fn default() -> ProjectMilestoneUpdateInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectMilestoneUpdateInput
impl RefUnwindSafe for ProjectMilestoneUpdateInput
impl Send for ProjectMilestoneUpdateInput
impl Sync for ProjectMilestoneUpdateInput
impl Unpin for ProjectMilestoneUpdateInput
impl UnsafeUnpin for ProjectMilestoneUpdateInput
impl UnwindSafe for ProjectMilestoneUpdateInput
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