pub struct AddProjectSpec {
pub title: String,
pub notes: Option<String>,
pub when: Option<String>,
pub deadline: Option<String>,
pub tags: Vec<String>,
pub area_id: Option<String>,
pub todos: Vec<AddTodoSpec>,
pub headings: Vec<String>,
}Fields§
§title: String§notes: Option<String>§when: Option<String>§deadline: Option<String>§area_id: Option<String>Parent area UUID. Optional — projects live in “no area” if omitted.
todos: Vec<AddTodoSpec>Initial to-dos to nest inside the project. Order preserved.
headings: Vec<String>Initial heading titles. Order preserved. Renders before todos in the items[] array — a Things UX convention, not a hard rule.
Trait Implementations§
Source§impl Clone for AddProjectSpec
impl Clone for AddProjectSpec
Source§fn clone(&self) -> AddProjectSpec
fn clone(&self) -> AddProjectSpec
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 AddProjectSpec
impl Debug for AddProjectSpec
Source§impl Default for AddProjectSpec
impl Default for AddProjectSpec
Source§fn default() -> AddProjectSpec
fn default() -> AddProjectSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddProjectSpec
impl<'de> Deserialize<'de> for AddProjectSpec
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 AddProjectSpec
impl RefUnwindSafe for AddProjectSpec
impl Send for AddProjectSpec
impl Sync for AddProjectSpec
impl Unpin for AddProjectSpec
impl UnsafeUnpin for AddProjectSpec
impl UnwindSafe for AddProjectSpec
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