pub struct TodoUpdate {
pub title: Option<String>,
pub description: Option<Option<String>>,
pub priority: Option<TodoPriority>,
pub assigned_to_turn: Option<Option<String>>,
pub tags: Option<Vec<String>>,
}Expand description
Parameters for updating todo item fields.
Fields§
§title: Option<String>New title.
description: Option<Option<String>>New description. Some(None) clears it.
priority: Option<TodoPriority>New priority.
assigned_to_turn: Option<Option<String>>New turn assignment. Some(None) clears it.
New complete tag set.
Trait Implementations§
Source§impl Clone for TodoUpdate
impl Clone for TodoUpdate
Source§fn clone(&self) -> TodoUpdate
fn clone(&self) -> TodoUpdate
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 TodoUpdate
impl Debug for TodoUpdate
Source§impl Default for TodoUpdate
impl Default for TodoUpdate
Source§fn default() -> TodoUpdate
fn default() -> TodoUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TodoUpdate
impl<'de> Deserialize<'de> for TodoUpdate
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 TodoUpdate
impl RefUnwindSafe for TodoUpdate
impl Send for TodoUpdate
impl Sync for TodoUpdate
impl Unpin for TodoUpdate
impl UnsafeUnpin for TodoUpdate
impl UnwindSafe for TodoUpdate
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