pub fn new_with_deadline(
        id: u32,
        created: Timestamp,
        deadline: Timestamp,
        description: impl Into<String>,
        kind: TaskKind,
        score: i32,
        difficulty: u32,
    ) -> Self {
        Self {
            id,
            created,
            deadline: Some(deadline),
            description: description.into(),
            kind,
            stage: StageId::Backlog,
            assigned: None,
            developed_by: None,
            score,
            difficulty,
            progress: 0.,
            specified: false,
            bugs: if kind == TaskKind::Bug { 1 } else { 0 },
            bugs_found: if kind == TaskKind::Bug { 1 } else { 0 },
            visible: true,
        }
    }
/// Create a new task in the backlog with a deadline
Create a new task in the backlog with a deadline
Create a new task in the backlog with a deadline
pub fn new_with_deadline(
        id: u32,
        created: Timestamp,
        deadline: Timestamp,
        description: impl Into<String>,
        kind: TaskKind,
        score: i32,
        difficulty: u32,
    ) -> Self {
        Self {
            id,
            created,
            deadline: Some(deadline),
            description: description.into(),
            kind,
            stage: StageId::Backlog,
            assigned: None,
            developed_by: None,
            score,
            difficulty,
            progress: 0.,
            specified: false,
            bugs: if kind == TaskKind::Bug { 1 } else { 0 },
            bugs_found: if kind == TaskKind::Bug { 1 } else { 0 },
            visible: true,
        }
    }
pub fn new_with_deadline ( id : u32 , created : Timestamp , deadline : Timestamp , description : impl Into < String > , kind : TaskKind , score : i32 , difficulty : u32 , ) -> Self { Self { id , created , deadline : Some ( deadline ) , description : description . into ( ) , kind , stage : StageId :: Backlog , assigned : None , developed_by : None , score , difficulty , progress : 0. , specified : false , bugs : if kind == TaskKind :: Bug { 1 } else { 0 } , bugs_found : if kind == TaskKind :: Bug { 1 } else { 0 } , visible : true , } }
Create a new task in the backlog with a deadline
Create a new task in the backlog with a deadline
id
u32
created
Timestamp
deadline
Timestamp
description
impl Into<String>
kind
TaskKind
score
i32
difficulty
u32
id
u32
created
Timestamp
deadline
Timestamp
description
impl Into<String>
kind
TaskKind
score
i32
difficulty
u32