#[non_exhaustive]pub struct ProjectMilestoneCreateInput {
pub project_id: ProjectId,
pub name: String,
pub description: Option<String>,
pub target_date: Option<TimelessDate>,
pub sort_order: Option<f64>,
}Expand description
Input for ProjectsService::create_milestone.
use linear_api::ProjectId;
use linear_api::projects::ProjectMilestoneCreateInput;
let input = ProjectMilestoneCreateInput::builder()
.project_id(ProjectId::new("proj-1"))
.name("M1".to_owned())
.build();
assert_eq!(input.name, "M1");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.project_id: ProjectIdProject the milestone belongs to (required).
name: StringMilestone name (required).
description: Option<String>Milestone description.
target_date: Option<TimelessDate>Target date.
sort_order: Option<f64>Sort order within the project.
Implementations§
Source§impl ProjectMilestoneCreateInput
impl ProjectMilestoneCreateInput
Sourcepub fn builder() -> ProjectMilestoneCreateInputBuilder
pub fn builder() -> ProjectMilestoneCreateInputBuilder
Create an instance of ProjectMilestoneCreateInput using the builder syntax
Trait Implementations§
Source§impl Clone for ProjectMilestoneCreateInput
impl Clone for ProjectMilestoneCreateInput
Source§fn clone(&self) -> ProjectMilestoneCreateInput
fn clone(&self) -> ProjectMilestoneCreateInput
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 ProjectMilestoneCreateInput
impl Debug for ProjectMilestoneCreateInput
Auto Trait Implementations§
impl Freeze for ProjectMilestoneCreateInput
impl RefUnwindSafe for ProjectMilestoneCreateInput
impl Send for ProjectMilestoneCreateInput
impl Sync for ProjectMilestoneCreateInput
impl Unpin for ProjectMilestoneCreateInput
impl UnsafeUnpin for ProjectMilestoneCreateInput
impl UnwindSafe for ProjectMilestoneCreateInput
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