pub struct CreateTaskCommand {
pub project_id: Uuid,
pub title: String,
pub estimate: Option<u8>,
}
Expand description
Command for adding a new task to an existing project
Fields§
§project_id: Uuid
Id for the project to add the task to
title: String
Title of the task to create
estimate: Option<u8>
The number of hours the task is estimated to take
Trait Implementations§
Source§impl Clone for CreateTaskCommand
impl Clone for CreateTaskCommand
Source§fn clone(&self) -> CreateTaskCommand
fn clone(&self) -> CreateTaskCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateTaskCommand
impl Debug for CreateTaskCommand
Source§impl<'de> Deserialize<'de> for CreateTaskCommand
impl<'de> Deserialize<'de> for CreateTaskCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateTaskCommand
impl RefUnwindSafe for CreateTaskCommand
impl Send for CreateTaskCommand
impl Sync for CreateTaskCommand
impl Unpin for CreateTaskCommand
impl UnwindSafe for CreateTaskCommand
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